mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
Respect -q with "add" and "delete". Document who respects -q.
PR: bin/38531
This commit is contained in:
parent
fc482908be
commit
999ffea58a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97278
@ -73,7 +73,11 @@ to forget this, especially when attempting to repair networking operations).
|
||||
.It Fl v
|
||||
(verbose) Print additional details.
|
||||
.It Fl q
|
||||
Suppress all output.
|
||||
Suppress all output from the
|
||||
.Cm add , delete ,
|
||||
and
|
||||
.Cm flush
|
||||
commands.
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
|
@ -784,6 +784,7 @@ newroute(argc, argv)
|
||||
}
|
||||
if (*cmd == 'g')
|
||||
exit(0);
|
||||
if (!qflag) {
|
||||
oerrno = errno;
|
||||
(void) printf("%s %s %s", cmd, ishost? "host" : "net", dest);
|
||||
if (*gateway) {
|
||||
@ -794,7 +795,6 @@ newroute(argc, argv)
|
||||
}
|
||||
if (ret == 0) {
|
||||
(void) printf("\n");
|
||||
exit(0);
|
||||
} else {
|
||||
switch (oerrno) {
|
||||
case ESRCH:
|
||||
@ -814,9 +814,10 @@ newroute(argc, argv)
|
||||
break;
|
||||
}
|
||||
(void) printf(": %s\n", err);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
exit(ret != 0);
|
||||
}
|
||||
|
||||
void
|
||||
inet_makenetandmask(net, sin, bits)
|
||||
|
Loading…
Reference in New Issue
Block a user