diff options
Diffstat (limited to 'loginutils/adduser.c')
-rw-r--r-- | loginutils/adduser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/adduser.c b/loginutils/adduser.c index 229bd67..6c69aaf 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c @@ -179,8 +179,8 @@ int adduser_main(int argc, char **argv) pw.pw_shell = (char *)DEFAULT_SHELL; pw.pw_dir = NULL; - /* check for min, max and missing args and exit on error */ - opt_complementary = "-1:?1:?"; + /* exactly one non-option arg */ + opt_complementary = "=1"; getopt32(argc, argv, "h:g:s:G:DSH", &pw.pw_dir, &pw.pw_gecos, &pw.pw_shell, &usegroup); argv += optind; |