basic/env-util: don't relax unesaping of serialized environment strings

We wrote them ourselves -- they shouldn't contain invalid sequences.
This commit is contained in:
Lubomir Rintel
2017-10-11 15:05:38 +02:00
parent ea43bdd1d7
commit c7d797bbdf
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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;