From e1fc61c1147c686c04c02bfb00ebb27910da332f Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 4 Jun 2016 16:31:33 +0000 Subject: [PATCH] Fix typo preventing pw {user,group}next -C from working as expected Reported by: Mike Selnet via forums.freebsd.org MFC after: 3 days --- usr.sbin/pw/pw_group.c | 2 +- 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 289a4c85df7..834160fd519 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 5ad1409f48b..67186c3dc03 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;