Fix typo preventing pw {user,group}next -C from working as expected

Reported by:	Mike Selnet via forums.freebsd.org
MFC after:	3 days
This commit is contained in:
bapt 2016-06-04 16:31:33 +00:00
parent 169b6f53fe
commit 3169b6e8ad
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;