projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
613613f
)
core: process C-style escapes in UnsetEnvironment=
author
Lennart Poettering
<lennart@poettering.net>
Tue, 21 Nov 2017 18:50:52 +0000
(19:50 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 29 Nov 2017 11:32:56 +0000
(12:32 +0100)
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
patch
|
blob
|
history
diff --git
a/src/core/load-fragment.c
b/src/core/load-fragment.c
index
ac58ce8
..
220e617
100644
(file)
--- 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)