summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortomsod-m ya ru <tomsod-m@ya.ru>2014-12-17 23:01:06 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-17 23:01:38 -0500
commit3851c51ad1dae6a1266896e7e364e424dc82467a (patch)
tree13fe25fa9022775dde0884f6bccfae068ab5e4c2 /src
parent6feeeab0bc40b5a7f208adf79909fb85e2208e8e (diff)
load-fragment: properly unescape \;
https://bugs.freedesktop.org/show_bug.cgi?id=87393
Diffstat (limited to 'src')
-rw-r--r--src/core/load-fragment.c4
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);