aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-16 09:07:39 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-16 09:07:39 +0000
commit88e38ca2fba03379ef386aff287d871c062a2ae7 (patch)
tree7a7f9e99ad4fe1c8dda018ce307e9d3b0663bc35 /loginutils
parentacd647c8774a556d0df77e6779867f9fa069cd22 (diff)
downloadbusybox-88e38ca2fba03379ef386aff287d871c062a2ae7.tar.gz
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
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/adduser.c4
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)
}
}
-#define SETPASS 1
-#define MAKEHOME 4
+#define SETPASS (1 << 4)
+#define MAKEHOME (1 << 6)
/*
* adduser will take a login_name as its first parameter.