diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2009-05-05 17:59:56 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2009-05-05 17:59:56 +0000 |
commit | 5685e1d8c6852385dfba966ad095b3d01408f0e8 (patch) | |
tree | 534f44deed8d2d7c60b88d84de33e9507c741800 /bin | |
parent | 7a84bcea6b9be61aa405059ba996e8d0001656a1 (diff) |
Fix usage string for mknod builtin.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ksh/c_sh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ksh/c_sh.c b/bin/ksh/c_sh.c index e822e850570..be6b0f4da24 100644 --- a/bin/ksh/c_sh.c +++ b/bin/ksh/c_sh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: c_sh.c,v 1.39 2009/01/29 23:27:26 jaredy Exp $ */ +/* $OpenBSD: c_sh.c,v 1.40 2009/05/05 17:59:55 millert Exp $ */ /* * built-in Bourne commands @@ -856,7 +856,7 @@ c_mknod(char **wp) } } argv = &wp[builtin_opt.optind]; - if (argv[0] == '\0') + if (argv[0] == NULL) goto usage; for (argc = 0; argv[argc]; argc++) ; @@ -880,6 +880,7 @@ c_mknod(char **wp) umask(oldmode); return ret; usage: + builtin_argv0 = NULL; bi_errorf("usage: mknod [-m mode] name [b | c] major minor"); bi_errorf("usage: mknod [-m mode] name p"); return 1; |