diff options
author | tomsod-m ya ru <tomsod-m@ya.ru> | 2014-12-17 23:01:06 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-12-17 23:01:38 -0500 |
commit | 3851c51ad1dae6a1266896e7e364e424dc82467a (patch) | |
tree | 13fe25fa9022775dde0884f6bccfae068ab5e4c2 | |
parent | 6feeeab0bc40b5a7f208adf79909fb85e2208e8e (diff) |
load-fragment: properly unescape \;
https://bugs.freedesktop.org/show_bug.cgi?id=87393
-rw-r--r-- | src/core/load-fragment.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 8e5be8731f..358d36beb6 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -601,8 +601,10 @@ int config_parse_exec(const char *unit, FOREACH_WORD_QUOTED(word, l, rvalue, state) { if (strneq(word, ";", MAX(l, 1U))) break; - else if (strneq(word, "\\;", MAX(l, 1U))) + else if (strneq(word, "\\;", MAX(l, 1U))) { word ++; + l --; + } if (honour_argv0 && word == rvalue) { assert(!path); |