[Bug 216594] pw usernext ignores config option

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 30 08:28:37 UTC 2017


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: freebsd-bugs at FreeBSD.org
          Reporter: gert at greenie.muc.de

"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.


More information about the freebsd-bugs mailing list