diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-08-16 09:07:39 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-08-16 09:07:39 +0000 |
commit | 906e5fa92c28c60e472817015e6c4d106f2e1737 (patch) | |
tree | 7a7f9e99ad4fe1c8dda018ce307e9d3b0663bc35 /loginutils/adduser.c | |
parent | 298e9952ade648380a5612c058cb7ede7051c561 (diff) | |
download | busybox-w32-906e5fa92c28c60e472817015e6c4d106f2e1737.tar.gz busybox-w32-906e5fa92c28c60e472817015e6c4d106f2e1737.tar.bz2 busybox-w32-906e5fa92c28c60e472817015e6c4d106f2e1737.zip |
Bertrand Baudet writes:
Looks like the -D and -H options of the adduser applet aren't handle
properly in BusyBox.
This patch fixes the masks definition for those options according to
there position in the optstring.
Patch against RC2 but should also apply cleanly against CVS.
Bertrand
git-svn-id: svn://busybox.net/trunk/busybox@9101 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 3e10fd398..768788845 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c | |||
@@ -238,8 +238,8 @@ void if_i_am_not_root(void) | |||
238 | } | 238 | } |
239 | } | 239 | } |
240 | 240 | ||
241 | #define SETPASS 1 | 241 | #define SETPASS (1 << 4) |
242 | #define MAKEHOME 4 | 242 | #define MAKEHOME (1 << 6) |
243 | 243 | ||
244 | /* | 244 | /* |
245 | * adduser will take a login_name as its first parameter. | 245 | * adduser will take a login_name as its first parameter. |