https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216594

            Bug ID: 216594
           Summary: pw usernext ignores config option
           Product: Base System
           Version: 10.3-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

"pw usernext -C /my/pw.conf"

ignores the "-C" option, due to a bug in pw/pw_user.c, line 747 - the
"getopt()" statement has "Cq" as arguments, but it needs to be "C:q"

--- pw_user.c.orig      2017-01-30 09:28:02.620426968 +0100
+++ pw_user.c   2017-01-30 09:27:51.560428192 +0100
@@ -744,7 +744,7 @@
        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;

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to