Page MenuHomeFreeBSD

D36087.id111654.diff
No OneTemporary

D36087.id111654.diff

diff --git a/contrib/blacklist/bin/blacklistctl.c b/contrib/blacklist/bin/blacklistctl.c
--- a/contrib/blacklist/bin/blacklistctl.c
+++ b/contrib/blacklist/bin/blacklistctl.c
@@ -61,7 +61,7 @@
{
if (c == 0)
warnx("Missing/unknown command");
- else
+ else if (c != '?')
warnx("Unknown option `%c'", (char)c);
fprintf(stderr, "Usage: %s dump [-abdnrw]\n", getprogname());
exit(EXIT_FAILURE);
@@ -123,7 +123,6 @@
break;
default:
usage(o);
- break;
}
db = state_open(dbname, O_RDONLY, 0);
diff --git a/contrib/blacklist/bin/blacklistd.c b/contrib/blacklist/bin/blacklistd.c
--- a/contrib/blacklist/bin/blacklistd.c
+++ b/contrib/blacklist/bin/blacklistd.c
@@ -105,7 +105,7 @@
static __dead void
usage(int c)
{
- if (c)
+ if (c != '?')
warnx("Unknown option `%c'", (char)c);
fprintf(stderr, "Usage: %s [-vdfr] [-c <config>] [-R <rulename>] "
"[-P <sockpathsfile>] [-C <controlprog>] [-D <dbfile>] "
@@ -474,7 +474,7 @@
vflag++;
break;
default:
- usage(c);
+ usage('?');
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 10:47 PM (17 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15964386
Default Alt Text
D36087.id111654.diff (1 KB)

Event Timeline