cryptsetup: fix escaping when generating cryptsetup units

This commit is contained in:
Lennart Poettering
2012-06-25 20:16:15 +02:00
parent 61beaf818b
commit 35eb6b124e
6 changed files with 119 additions and 112 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ static int create_disk(
noauto = has_option(options, "noauto");
nofail = has_option(options, "nofail");
n = unit_name_build_escape("systemd-cryptsetup", name, ".service");
n = unit_name_from_path_instance("systemd-cryptsetup", name, ".service");
if (!n) {
r = -ENOMEM;
log_error("Failed to allocate unit name.");