Date: Mon, 30 Jan 2017 08:28:36 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 216594] pw usernext ignores config option Message-ID: <bug-216594-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216594 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@FreeBSD.org Reporter: gert@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 =3D false; uid_t next; - while ((ch =3D getopt(argc, argv, "Cq")) !=3D -1) { + while ((ch =3D getopt(argc, argv, "C:q")) !=3D -1) { switch (ch) { case 'C': cfg =3D optarg; --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216594-8>