aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pw
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1999-02-23 11:01:50 +0000
committerDavid Nugent <davidn@FreeBSD.org>1999-02-23 11:01:50 +0000
commit7291e2179c037c5b398fb9a392e5079dddcd9aeb (patch)
treea20178b6f8c9e8168917fbf2aec6493b8534d4a7 /usr.sbin/pw
parente3921b2795b59e386edaf3f2498f05facd87e054 (diff)
downloadsrc-7291e2179c037c5b398fb9a392e5079dddcd9aeb.tar.gz
src-7291e2179c037c5b398fb9a392e5079dddcd9aeb.zip
Fix minor nit with command line parsing for pw -V DIR action.
Notes
Notes: svn path=/head/; revision=44232
Diffstat (limited to 'usr.sbin/pw')
-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 d531fdc2faf8..6fbcfb51d1e9 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]);