daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
84b277
From 5db48e390d876be7e00c3403953d7fe80ff6c87b Mon Sep 17 00:00:00 2001
84b277
From: Michal Sekletar <msekleta@redhat.com>
84b277
Date: Mon, 26 May 2014 20:09:45 +0200
84b277
Subject: [PATCH] Do not unescape unit names in [Install] section
84b277
84b277
https://bugs.freedesktop.org/show_bug.cgi?id=49316
84b277
84b277
(cherry-picked from 000f6e5667eb4f73e137cbd0d7395a9f9db7728a)
84b277
84b277
Resolves: #1147524
84b277
---
84b277
 src/shared/conf-parser.c | 2 +-
84b277
 1 file changed, 1 insertion(+), 1 deletion(-)
84b277
84b277
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
84b277
index db71168..b356687 100644
84b277
--- a/src/shared/conf-parser.c
84b277
+++ b/src/shared/conf-parser.c
84b277
@@ -670,7 +670,7 @@ int config_parse_strv(const char *unit,
84b277
         FOREACH_WORD_QUOTED(w, l, rvalue, state) {
84b277
                 _cleanup_free_ char *n;
84b277
 
84b277
-                n = cunescape_length(w, l);
84b277
+                n = strndup(w, l);
84b277
                 if (!n)
84b277
                         return log_oom();
84b277