Fix --non-unique's has_arg field to no_argument instead of required_argument.
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
2008-02-19 Nicolas François <nicolas.francois@centraliens.net>
|
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: 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>
|
2008-02-19 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@@ -357,7 +357,7 @@ static void process_flags (int argc, char **argv)
|
|||||||
{"gid", required_argument, NULL, 'g'},
|
{"gid", required_argument, NULL, 'g'},
|
||||||
{"help", no_argument, NULL, 'h'},
|
{"help", no_argument, NULL, 'h'},
|
||||||
{"key", required_argument, NULL, 'K'},
|
{"key", required_argument, NULL, 'K'},
|
||||||
{"non-unique", required_argument, NULL, 'o'},
|
{"non-unique", no_argument, NULL, 'o'},
|
||||||
{"password", required_argument, NULL, 'p'},
|
{"password", required_argument, NULL, 'p'},
|
||||||
{"system", no_argument, NULL, 'r'},
|
{"system", no_argument, NULL, 'r'},
|
||||||
{NULL, 0, NULL, '\0'}
|
{NULL, 0, NULL, '\0'}
|
||||||
|
Reference in New Issue
Block a user