summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw.c
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1999-02-23 11:01:50 +0000
committerdavidn <davidn@FreeBSD.org>1999-02-23 11:01:50 +0000
commite0514a77ef5955d7015eb81e266518a7f13b84ac (patch)
tree892ba49385465e1d66904a5931a8da35701b1fc7 /usr.sbin/pw/pw.c
parenta5b26be1a13005621917c3c484a73ea8bebc123e (diff)
downloadFreeBSD-src-e0514a77ef5955d7015eb81e266518a7f13b84ac.zip
FreeBSD-src-e0514a77ef5955d7015eb81e266518a7f13b84ac.tar.gz
Fix minor nit with command line parsing for pw -V DIR action.
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r--usr.sbin/pw/pw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c
index d531fdc..6fbcfb5 100644
--- a/usr.sbin/pw/pw.c
+++ b/usr.sbin/pw/pw.c
@@ -26,7 +26,7 @@
#ifndef lint
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 */
#include <err.h>
@@ -153,7 +153,7 @@ main(int argc, char *argv[])
mode = tmp % M_NUM;
} else if (strcmp(argv[1], "help") == 0)
cmdhelp(mode, which);
- else if (which != -1 && mode != -1 && arglist.lh_first == NULL)
+ else if (which != -1 && mode != -1)
addarg(&arglist, 'n', argv[1]);
else
errx(EX_USAGE, "unknown keyword `%s'", argv[1]);
OpenPOWER on IntegriCloud