Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentally
[oweals/busybox.git] / loginutils / adduser.c
index eb9890168a873363702c0f41a16e9eca8d00d033..5ff0cd962ec626162ce5e748d663dd8d7359b9ff 100644 (file)
@@ -117,7 +117,7 @@ static void addgroup_wrapper(const char *login, gid_t gid)
 {
        char *cmd;
 
-       bb_xasprintf(&cmd, "addgroup -g %d %s", gid, login);
+       cmd = bb_xasprintf("addgroup -g %d \"%s\"", gid, login);
        system(cmd);
        free(cmd);
 }