conf-parser: don't unescape parsed configuration strings by default
In many cases this might have a negative effect since we drop escaping from strings where we better shouldn't have dropped it. If unescaping makes sense for some settings we can readd it later again, on a per-case basis. https://bugs.freedesktop.org/show_bug.cgi?id=54522
This commit is contained in:
@@ -593,7 +593,7 @@ int config_parse_string(
|
||||
assert(rvalue);
|
||||
assert(data);
|
||||
|
||||
n = cunescape(rvalue);
|
||||
n = strdup(rvalue);
|
||||
if (!n)
|
||||
return -ENOMEM;
|
||||
|
||||
|
||||
@@ -4097,6 +4097,8 @@ static char *tag_to_udev_node(const char *tagvalue, const char *by) {
|
||||
}
|
||||
|
||||
char *fstab_node_to_udev_node(const char *p) {
|
||||
assert(p);
|
||||
|
||||
if (startswith(p, "LABEL="))
|
||||
return tag_to_udev_node(p+6, "label");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user