diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-06-04 16:31:33 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-06-04 16:31:33 +0000 |
commit | 043e0d933a6fa3cedba9a0c0db9d995288aa5f53 (patch) | |
tree | f1e7e57954060d425b693388ddbde344e5da82d4 /pw | |
parent | 464e017819a03cb8d878c2dae86d2d76b4f93a67 (diff) | |
download | pw-darwin-043e0d933a6fa3cedba9a0c0db9d995288aa5f53.tar.gz pw-darwin-043e0d933a6fa3cedba9a0c0db9d995288aa5f53.tar.zst pw-darwin-043e0d933a6fa3cedba9a0c0db9d995288aa5f53.zip |
Fix typo preventing pw {user,group}next -C from working as expected
Reported by: Mike Selnet via forums.freebsd.org
MFC after: 3 days
Diffstat (limited to 'pw')
-rw-r--r-- | pw/pw_group.c | 2 | ||||
-rw-r--r-- | pw/pw_user.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pw/pw_group.c b/pw/pw_group.c index 289a4c8..834160f 100644 --- a/pw/pw_group.c +++ b/pw/pw_group.c @@ -261,7 +261,7 @@ pw_group_next(int argc, char **argv, char *arg1 __unused) int ch; bool quiet = false; - while ((ch = getopt(argc, argv, "Cq")) != -1) { + while ((ch = getopt(argc, argv, "C:q")) != -1) { switch (ch) { case 'C': cfg = optarg; diff --git a/pw/pw_user.c b/pw/pw_user.c index 5ad1409..67186c3 100644 --- a/pw/pw_user.c +++ b/pw/pw_user.c @@ -742,7 +742,7 @@ pw_user_next(int argc, char **argv, char *name __unused) bool quiet = false; uid_t next; - while ((ch = getopt(argc, argv, "Cq")) != -1) { + while ((ch = getopt(argc, argv, "C:q")) != -1) { switch (ch) { case 'C': cfg = optarg; |