Commit e7db37dd authored by Lennart Poettering's avatar Lennart Poettering
Browse files

util: fix handling of quotes in parse_env_file()

parent 72bca11b
......@@ -641,8 +641,8 @@ int parse_env_file(
n = strcspn(p, seperator);
if (n >= 2 &&
strchr(QUOTES, v[0]) &&
v[n-1] == v[0])
strchr(QUOTES, p[0]) &&
p[n-1] == p[0])
v = strndup(p+1, n-2);
else
v = strndup(p, n);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment