From: Mike Frysinger Date: Tue, 15 Nov 2005 05:53:00 +0000 (-0000) Subject: Quote the user we pass to addgroup so funky chars are preserved. Fix by dragan_marin... X-Git-Tag: 1_1_0~473 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4ee2eee2fcd6da772abb572c92cfa231517ae65c;p=oweals%2Fbusybox.git Quote the user we pass to addgroup so funky chars are preserved. Fix by dragan_marinkovic in Bug 544 --- diff --git a/loginutils/adduser.c b/loginutils/adduser.c index 1630c72ba..5ff0cd962 100644 --- 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); }