]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Fix typo preventing pw {user,group}next -C from working as expected
authorBaptiste Daroussin <bapt@FreeBSD.org>
Sat, 4 Jun 2016 16:31:33 +0000 (16:31 +0000)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Sat, 4 Jun 2016 16:31:33 +0000 (16:31 +0000)
Reported by: Mike Selnet via forums.freebsd.org
MFC after: 3 days

pw/pw_group.c
pw/pw_user.c

index 289a4c85df7029768041505d9387525cb1979e27..834160fd5191fbf92a199ad5e5b980c371f24664 100644 (file)
@@ -261,7 +261,7 @@ pw_group_next(int argc, char **argv, char *arg1 __unused)
        int ch;
        bool quiet = false;
 
        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;
                switch (ch) {
                case 'C':
                        cfg = optarg;
index 5ad1409f48b66cd0a04fb70f962b1fb80cc45527..67186c3dc0338b533c4dc170dcd528aba9c94f0d 100644 (file)
@@ -742,7 +742,7 @@ pw_user_next(int argc, char **argv, char *name __unused)
        bool quiet = false;
        uid_t next;
 
        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;
                switch (ch) {
                case 'C':
                        cfg = optarg;