projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acd647c
)
Bertrand Baudet writes:
author
Eric Andersen
<andersen@codepoet.org>
Mon, 16 Aug 2004 09:07:39 +0000
(09:07 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Mon, 16 Aug 2004 09:07:39 +0000
(09:07 -0000)
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
loginutils/adduser.c
patch
|
blob
|
history
diff --git
a/loginutils/adduser.c
b/loginutils/adduser.c
index
3e10fd3
..
7687888
100644
(file)
--- 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.