projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e85e260
)
adduser: check whether run with no USERNAME. Closes 6728
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 20 Dec 2013 19:45:02 +0000
(20:45 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 20 Dec 2013 19:45:02 +0000
(20:45 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
loginutils/adduser.c
patch
|
blob
|
history
diff --git
a/loginutils/adduser.c
b/loginutils/adduser.c
index dc02444766378cd11ec395d1bc55aec3a96080d6..ef390adf825e56acb2ca16fbda1ca6bd7d82e99d 100644
(file)
--- a/
loginutils/adduser.c
+++ b/
loginutils/adduser.c
@@
-162,9
+162,9
@@
int adduser_main(int argc UNUSED_PARAM, char **argv)
pw.pw_shell = (char *)get_shell_name();
pw.pw_dir = NULL;
- /* at most two non-option args */
+ /* at
least one and at
most two non-option args */
/* disable interactive passwd for system accounts */
- opt_complementary = "?2:SD:u+";
+ opt_complementary = "
-1:
?2:SD:u+";
if (sizeof(pw.pw_uid) == sizeof(int)) {
opts = getopt32(argv, "h:g:s:G:DSHu:", &pw.pw_dir, &pw.pw_gecos, &pw.pw_shell, &usegroup, &pw.pw_uid);
} else {