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-Url: https://git.librecmc.org/?a=commitdiff_plain;h=88c0e01cafb3390bc433c673907e38fc3d6737a1;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/busybox/loginutils/adduser.c b/busybox/loginutils/adduser.c index 7fa05a013..58a733864 100644 --- a/busybox/loginutils/adduser.c +++ b/busybox/loginutils/adduser.c @@ -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); + bb_xasprintf(&cmd, "addgroup -g %d \"%s\"", gid, login); system(cmd); free(cmd); }