From 4ee2eee2fcd6da772abb572c92cfa231517ae65c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 15 Nov 2005 05:53:00 +0000 Subject: [PATCH] Quote the user we pass to addgroup so funky chars are preserved. Fix by dragan_marinkovic in Bug 544 --- loginutils/adduser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }