load-fragment: properly unescape \;

https://bugs.freedesktop.org/show_bug.cgi?id=87393
This commit is contained in:
tomsod-m ya ru
2014-12-17 23:01:38 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent 6feeeab0bc
commit 3851c51ad1
+3 -1
View File
@@ -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);