mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user