diff options
author | Oleksii Shevchuk <alxchk@gmail.com> | 2012-11-03 21:52:02 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-11-15 16:01:10 +0100 |
commit | 7e1a84f55244ca78093b1dabc58683bc0e7f4304 (patch) | |
tree | 03eeff2c5547f8188bc3309e704881e836fbcc63 /src/core/load-fragment.c | |
parent | 2c5417ade0d137f811e4fcc1b099f963e6d5a820 (diff) |
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 \;
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r-- | src/core/load-fragment.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 5803044178..4dc5c529a2 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -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); |