Page MenuHomeFreeBSD

D57298.1795435925.diff
No OneTemporary

Authored By
Unknown
Size
609 B
Referenced Files
None
Subscribers
None

D57298.1795435925.diff

diff --git a/usr.sbin/certctl/certctl.c b/usr.sbin/certctl/certctl.c
--- a/usr.sbin/certctl/certctl.c
+++ b/usr.sbin/certctl/certctl.c
@@ -1093,6 +1093,7 @@
main(int argc, char *argv[])
{
const char *command;
+ unsigned int i;
int opt;
while ((opt = getopt(argc, argv, "BcD:d:g:lL:M:no:Uv")) != -1)
@@ -1155,8 +1156,8 @@
set_defaults();
- for (unsigned i = 0; commands[i].name != NULL; i++)
+ for (i = 0; commands[i].name != NULL; i++)
if (strcmp(command, commands[i].name) == 0)
- exit(!!commands[i].func(argc, argv));
+ exit(commands[i].func(argc, argv) == 0 ? 0 : 1);
usage();
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 12:12 PM (22 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41911201
Default Alt Text
D57298.1795435925.diff (609 B)

Event Timeline