Fix exit status. In rev. 1.48 return logic of rtmsg() was confused. This

made arp(8) command exit status reversed for -s and -S.

Reported by:	sem
MFC after:	2 weeks
This commit is contained in:
Gleb Smirnoff 2005-06-09 15:00:31 +00:00
parent 8b9bbaaa94
commit cf77958920

View file

@ -384,7 +384,7 @@ set(int argc, char **argv)
}
sdl_m.sdl_type = sdl->sdl_type;
sdl_m.sdl_index = sdl->sdl_index;
return (rtmsg(RTM_ADD, dst, &sdl_m) != NULL);
return (rtmsg(RTM_ADD, dst, &sdl_m) == NULL);
}
/*