8d419f
From 5f66b67ac6594a3dee6e463a5f31c2d1051503cc Mon Sep 17 00:00:00 2001
8d419f
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
8d419f
Date: Tue, 8 Mar 2022 11:47:23 +0100
8d419f
Subject: [PATCH] shared/install: do not print aliases longer than
8d419f
 UNIT_NAME_MAX
8d419f
8d419f
065364920281e1cf59cab989e17aff21790505c4 did the conversion to install_path_printf().
8d419f
But IIUC, here we are just looking at a unit file name, not the full
8d419f
path.
8d419f
8d419f
(cherry picked from commit 46801e7647d98ccac8fca4cc91ef9c3513151943)
8d419f
8d419f
Related: #2082131
8d419f
---
8d419f
 src/shared/install.c | 2 +-
8d419f
 1 file changed, 1 insertion(+), 1 deletion(-)
8d419f
8d419f
diff --git a/src/shared/install.c b/src/shared/install.c
8d419f
index c6cbe96fdb..79e5109ce1 100644
8d419f
--- a/src/shared/install.c
8d419f
+++ b/src/shared/install.c
8d419f
@@ -1825,7 +1825,7 @@ static int install_info_symlink_alias(
8d419f
         STRV_FOREACH(s, i->aliases) {
8d419f
                 _cleanup_free_ char *alias_path = NULL, *dst = NULL, *dst_updated = NULL;
8d419f
 
8d419f
-                q = install_path_printf(i, *s, i->root, &dst);
8d419f
+                q = install_name_printf(i, *s, i->root, &dst);
8d419f
                 if (q < 0)
8d419f
                         return q;
8d419f