chiark / gitweb /
basic/env-util: don't relax unesaping of serialized environment strings
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 11 Oct 2017 13:05:38 +0000 (15:05 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 11 Oct 2017 13:05:38 +0000 (15:05 +0200)
We wrote them ourselves -- they shouldn't contain invalid sequences.

src/basic/env-util.c

index 95a78ccfb1b3dba813d4bcaddf023d3f4035e625..7269000d9bf28eb047057cc6a29aea9a5b98c44b 100644 (file)
@@ -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;