shared/install: do not print aliases longer than UNIT_NAME_MAX

0653649202 did the conversion to install_path_printf().
But IIUC, here we are just looking at a unit file name, not the full
path.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-03-18 10:22:20 +01:00
committed by Lennart Poettering
parent 09f5fc66f2
commit 46801e7647
+1 -1
View File
@@ -1820,7 +1820,7 @@ static int install_info_symlink_alias(
STRV_FOREACH(s, i->aliases) {
_cleanup_free_ char *alias_path = NULL, *dst = NULL, *dst_updated = NULL;
q = install_path_printf(i, *s, i->root, &dst);
q = install_name_printf(i, *s, i->root, &dst);
if (q < 0)
return q;