From 6c5def2ff201ecbd07e39c794c9392f9ef2d8dcb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Nov 2017 19:50:52 +0100 Subject: [PATCH] core: process C-style escapes in UnsetEnvironment= We process C-style escapes in Environment=, hence we should process it in UnsetEnvironment= too, as the latter accepts assignments much like the former, including arbitrary values specified by the user. --- src/core/load-fragment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index ac58ce8..220e617 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -2474,7 +2474,7 @@ int config_parse_unset_environ( for (;;) { _cleanup_free_ char *word = NULL, *k = NULL; - r = extract_first_word(&rvalue, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&rvalue, &word, NULL, EXTRACT_CUNESCAPE|EXTRACT_QUOTES); if (r == 0) break; if (r == -ENOMEM) -- 2.7.4