projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentally
[oweals/busybox.git]
/
loginutils
/
adduser.c
diff --git
a/loginutils/adduser.c
b/loginutils/adduser.c
index eb9890168a873363702c0f41a16e9eca8d00d033..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;
{
char *cmd;
-
bb_xasprintf(&cmd, "addgroup -g %d %s
", gid, login);
+
cmd = bb_xasprintf("addgroup -g %d \"%s\"
", gid, login);
system(cmd);
free(cmd);
}
system(cmd);
free(cmd);
}