summaryrefslogtreecommitdiff
path: root/src/basic/env-util.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-10-11 15:05:38 +0200
committerLubomir Rintel <lkundrak@v3.sk>2017-10-11 15:05:38 +0200
commitc7d797bbdfaccd950988698823e17103f418a3c5 (patch)
treeb963ae370090a825bc1561c857ae78bec41dcc5c /src/basic/env-util.c
parentea43bdd1d7c14e3695a4cc081e4ef4f964160dc1 (diff)
downloadsystemd-c7d797bbdfaccd950988698823e17103f418a3c5.tar.gz
basic/env-util: don't relax unesaping of serialized environment strings
We wrote them ourselves -- they shouldn't contain invalid sequences.
Diffstat (limited to 'src/basic/env-util.c')
-rw-r--r--src/basic/env-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/env-util.c b/src/basic/env-util.c
index a8b51e719f..0da10de0c8 100644
--- a/src/basic/env-util.c
+++ b/src/basic/env-util.c
@@ -805,7 +805,7 @@ int deserialize_environment(char ***environment, const char *line) {
assert(environment);
assert(startswith(line, "env="));
- r = cunescape(line + 4, UNESCAPE_RELAX, &uce);
+ r = cunescape(line + 4, 0, &uce);
if (r < 0)
return r;