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.");