summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-06-25 20:16:15 +0200
committerLennart Poettering <lennart@poettering.net>2012-06-25 20:16:15 +0200
commit35eb6b124ebdf82bd77aad6e44962a9a039c4d33 (patch)
tree95f6283713ae0d47a7ff896c188c49fdb28cb52c /src/core
parent61beaf818bd222fdbacd233fba8df6124ec8d32d (diff)
cryptsetup: fix escaping when generating cryptsetup units
Diffstat (limited to 'src/core')
-rw-r--r--src/core/unit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 4cffc57793..64e26b7a94 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -2509,7 +2509,8 @@ int unit_add_node_link(Unit *u, const char *what, bool wants) {
if (!is_device_path(what))
return 0;
- if (!(e = unit_name_build_escape(what+1, NULL, ".device")))
+ e = unit_name_from_path(what, ".device");
+ if (!e)
return -ENOMEM;
r = manager_load_unit(u->manager, e, NULL, NULL, &device);