aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loginutils/adduser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/adduser.c b/loginutils/adduser.c
index dc0244476..ef390adf8 100644
--- a/loginutils/adduser.c
+++ b/loginutils/adduser.c
@@ -162,9 +162,9 @@ int adduser_main(int argc UNUSED_PARAM, char **argv)
162 pw.pw_shell = (char *)get_shell_name(); 162 pw.pw_shell = (char *)get_shell_name();
163 pw.pw_dir = NULL; 163 pw.pw_dir = NULL;
164 164
165 /* at most two non-option args */ 165 /* at least one and at most two non-option args */
166 /* disable interactive passwd for system accounts */ 166 /* disable interactive passwd for system accounts */
167 opt_complementary = "?2:SD:u+"; 167 opt_complementary = "-1:?2:SD:u+";
168 if (sizeof(pw.pw_uid) == sizeof(int)) { 168 if (sizeof(pw.pw_uid) == sizeof(int)) {
169 opts = getopt32(argv, "h:g:s:G:DSHu:", &pw.pw_dir, &pw.pw_gecos, &pw.pw_shell, &usegroup, &pw.pw_uid); 169 opts = getopt32(argv, "h:g:s:G:DSHu:", &pw.pw_dir, &pw.pw_gecos, &pw.pw_shell, &usegroup, &pw.pw_uid);
170 } else { 170 } else {