diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-30 12:32:37 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-30 12:32:37 +0000 |
commit | f1f1b69dc12d489ef8b8cd1fb4114d404407e481 (patch) | |
tree | 9db38af23628c5c8e8b97f8aed67b5e0333fa7b5 /loginutils/adduser.c | |
parent | 980864de081536ac8b5bdb053abea622da72ad75 (diff) | |
download | busybox-w32-f1f1b69dc12d489ef8b8cd1fb4114d404407e481.tar.gz busybox-w32-f1f1b69dc12d489ef8b8cd1fb4114d404407e481.tar.bz2 busybox-w32-f1f1b69dc12d489ef8b8cd1fb4114d404407e481.zip |
addgroup: "disallow addgroup -g num user group"; make -g 0 work
(Tito <farmatito@tiscali.it>)
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 229bd679d..6c69aaf41 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c | |||
@@ -179,8 +179,8 @@ int adduser_main(int argc, char **argv) | |||
179 | pw.pw_shell = (char *)DEFAULT_SHELL; | 179 | pw.pw_shell = (char *)DEFAULT_SHELL; |
180 | pw.pw_dir = NULL; | 180 | pw.pw_dir = NULL; |
181 | 181 | ||
182 | /* check for min, max and missing args and exit on error */ | 182 | /* exactly one non-option arg */ |
183 | opt_complementary = "-1:?1:?"; | 183 | opt_complementary = "=1"; |
184 | getopt32(argc, argv, "h:g:s:G:DSH", &pw.pw_dir, &pw.pw_gecos, &pw.pw_shell, &usegroup); | 184 | getopt32(argc, argv, "h:g:s:G:DSH", &pw.pw_dir, &pw.pw_gecos, &pw.pw_shell, &usegroup); |
185 | argv += optind; | 185 | argv += optind; |
186 | 186 | ||