From 4d00b5355c9f3c5976f1f8e0471199455bb4ca88 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 11 Oct 2017 15:05:38 +0200 Subject: [PATCH] basic/env-util: don't relax unesaping of serialized environment strings We wrote them ourselves -- they shouldn't contain invalid sequences. --- src/basic/env-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/env-util.c b/src/basic/env-util.c index 95a78ccfb..7269000d9 100644 --- a/src/basic/env-util.c +++ b/src/basic/env-util.c @@ -806,7 +806,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; -- 2.30.2