core: interpret \; token in ExecStart as escaped ;

Some commands (like 'find') take a semicolon as separate arg. With
current parser implementation there is no way to pass one.

Patch adds token \;
This commit is contained in:
Oleksii Shevchuk
2012-11-15 16:01:10 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent 2c5417ade0
commit 7e1a84f552
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -483,6 +483,8 @@ int config_parse_exec(
FOREACH_WORD_QUOTED(w, l, rvalue, state) {
if (strncmp(w, ";", MAX(l, 1U)) == 0)
break;
else if (strncmp(w, "\\;", MAX(l, 1U)) == 0)
w ++;
if (honour_argv0 && w == rvalue) {
assert(!path);