chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
856df4f
)
basic/env-util: don't relax unesaping of serialized environment strings
author
Lubomir Rintel
<lkundrak@v3.sk>
Wed, 11 Oct 2017 13:05:38 +0000
(15:05 +0200)
committer
Sven 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
patch
|
blob
|
history
diff --git
a/src/basic/env-util.c
b/src/basic/env-util.c
index 95a78ccfb1b3dba813d4bcaddf023d3f4035e625..7269000d9bf28eb047057cc6a29aea9a5b98c44b 100644
(file)
--- 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;