Quote the user we pass to addgroup so funky chars are preserved. Fix by dragan_marinkovic in Bug 544
This commit is contained in:
parent
79e1cab0d1
commit
4ee2eee2fc
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user