diff options
author | bapt <bapt@FreeBSD.org> | 2016-06-04 16:31:33 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-06-04 16:31:33 +0000 |
commit | 3169b6e8ad6fc05ecc1d568b5973bdf24d113527 (patch) | |
tree | 585bf9f8cfcaef42600faa3961af33e02d503954 | |
parent | 169b6f53fec4f6b7e1f52e403612137c0632a974 (diff) | |
download | FreeBSD-src-3169b6e8ad6fc05ecc1d568b5973bdf24d113527.zip FreeBSD-src-3169b6e8ad6fc05ecc1d568b5973bdf24d113527.tar.gz |
Fix typo preventing pw {user,group}next -C from working as expected
Reported by: Mike Selnet via forums.freebsd.org
MFC after: 3 days
-rw-r--r-- | usr.sbin/pw/pw_group.c | 2 | ||||
-rw-r--r-- | usr.sbin/pw/pw_user.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_group.c b/usr.sbin/pw/pw_group.c index 289a4c8..834160f 100644 --- a/usr.sbin/pw/pw_group.c +++ b/usr.sbin/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/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 5ad1409..67186c3 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/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; |