Fix --non-unique's has_arg field to no_argument instead of required_argument.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 19 Feb 2008 21:16:28 +0000 (21:16 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 19 Feb 2008 21:16:28 +0000 (21:16 +0000)
ChangeLog
src/groupadd.c

index 2a2bc866e81dd2ba1a30d8532db665a792f6367b..01d12a9d7c98dec291bfa7d99add333d5346715b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2008-02-19  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/groupadd.c: Add missing 'p' to the getopt_long's optstring.
+       * src/groupadd.c: Fix --non-unique's has_arg field to no_argument
+       instead of required_argument.
 
 2008-02-19  Nicolas François  <nicolas.francois@centraliens.net>
 
index 7e6ab8e69ea4cd150c0f0a03074182e185522e34..a5a7600e8f75b12e6f1f890141d8c0139d70e536 100644 (file)
@@ -357,7 +357,7 @@ static void process_flags (int argc, char **argv)
                {"gid", required_argument, NULL, 'g'},
                {"help", no_argument, NULL, 'h'},
                {"key", required_argument, NULL, 'K'},
-               {"non-unique", required_argument, NULL, 'o'},
+               {"non-unique", no_argument, NULL, 'o'},
                {"password", required_argument, NULL, 'p'},
                {"system", no_argument, NULL, 'r'},
                {NULL, 0, NULL, '\0'}