projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79e1cab
)
Quote the user we pass to addgroup so funky chars are preserved. Fix by dragan_marin...
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 15 Nov 2005 05:53:00 +0000
(
05:53
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 15 Nov 2005 05:53:00 +0000
(
05:53
-0000)
loginutils/adduser.c
patch
|
blob
|
history
diff --git
a/loginutils/adduser.c
b/loginutils/adduser.c
index 1630c72ba1cd4a32e02d234123063a83dd941dea..5ff0cd962ec626162ce5e748d663dd8d7359b9ff 100644
(file)
--- a/
loginutils/adduser.c
+++ b/
loginutils/adduser.c
@@
-117,7
+117,7
@@
static void addgroup_wrapper(const char *login, gid_t gid)
{
char *cmd;
- cmd = bb_xasprintf("addgroup -g %d
%s
", gid, login);
+ cmd = bb_xasprintf("addgroup -g %d
\"%s\"
", gid, login);
system(cmd);
free(cmd);
}