chiark / gitweb /
cryptsetup: fix escaping when generating cryptsetup units
[elogind.git] / src / cryptsetup / cryptsetup-generator.c
index 4166f365eaccef7dc451d117757b54a14a6cfc8e..b86521a7128c9d25a5521493539e58e25ed538ee 100644 (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.");