From 46801e7647d98ccac8fca4cc91ef9c3513151943 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 8 Mar 2022 11:47:23 +0100 Subject: [PATCH] shared/install: do not print aliases longer than UNIT_NAME_MAX 065364920281e1cf59cab989e17aff21790505c4 did the conversion to install_path_printf(). But IIUC, here we are just looking at a unit file name, not the full path. --- src/shared/install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/install.c b/src/shared/install.c index 11240f206c..4a2698d6a1 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -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; -- 2.25.1