mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Fix minor nit with command line parsing for pw -V DIR action.
This commit is contained in:
parent
e3921b2795
commit
7291e2179c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44232
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: pw.c,v 1.12 1999/02/23 07:15:10 davidn Exp $";
|
"$Id: pw.c,v 1.13 1999/02/23 10:35:47 davidn Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
@ -153,7 +153,7 @@ main(int argc, char *argv[])
|
|||||||
mode = tmp % M_NUM;
|
mode = tmp % M_NUM;
|
||||||
} else if (strcmp(argv[1], "help") == 0)
|
} else if (strcmp(argv[1], "help") == 0)
|
||||||
cmdhelp(mode, which);
|
cmdhelp(mode, which);
|
||||||
else if (which != -1 && mode != -1 && arglist.lh_first == NULL)
|
else if (which != -1 && mode != -1)
|
||||||
addarg(&arglist, 'n', argv[1]);
|
addarg(&arglist, 'n', argv[1]);
|
||||||
else
|
else
|
||||||
errx(EX_USAGE, "unknown keyword `%s'", argv[1]);
|
errx(EX_USAGE, "unknown keyword `%s'", argv[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user