Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=35152f48bab990aa5a67e5da4f6f7c8c41fddf13
commit 35152f48bab990aa5a67e5da4f6f7c8c41fddf13 Author: James Buren <[email protected]> Date: Sun Aug 25 19:37:50 2013 -0500 dmconfig: use shell_escape when using systemd. diff --git a/src/dmconfig.c b/src/dmconfig.c index b124438..03d3ef3 100644 --- a/src/dmconfig.c +++ b/src/dmconfig.c @@ -133,7 +133,7 @@ static bool update_via_new(void) if(strlen(old) > 0) { - strfcpy(command,sizeof(command),"systemctl disable %s",old); + strfcpy(command,sizeof(command),"systemctl disable '%s'",shell_escape(old)); if(!execute(command,g->guestroot,0)) return false; @@ -141,7 +141,7 @@ static bool update_via_new(void) if(strlen(new) > 0) { - strfcpy(command,sizeof(command),"systemctl enable %s",new); + strfcpy(command,sizeof(command),"systemctl enable '%s'",shell_escape(new)); if(!execute(command,g->guestroot,0)) return false; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
