diff options
author | Denis Vlasenko | 2007-07-30 12:32:37 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-07-30 12:32:37 +0000 |
commit | f1f1b69dc12d489ef8b8cd1fb4114d404407e481 (patch) | |
tree | 9db38af23628c5c8e8b97f8aed67b5e0333fa7b5 /loginutils/adduser.c | |
parent | 980864de081536ac8b5bdb053abea622da72ad75 (diff) | |
download | busybox-f1f1b69dc12d489ef8b8cd1fb4114d404407e481.zip busybox-f1f1b69dc12d489ef8b8cd1fb4114d404407e481.tar.gz |
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 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; |