From a4b1232dbf604fbd357cb4a9ef2024a703407131 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 1 May 2025 19:44:07 +0900 Subject: [PATCH] core/unit: suffix directory paths with slash --- src/core/unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/unit.c b/src/core/unit.c index d242bb7196d..9d3988a635a 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -1271,11 +1271,11 @@ int unit_add_exec_dependencies(Unit *u, ExecContext *c) { } if (c->private_tmp == PRIVATE_TMP_CONNECTED) { - r = unit_add_mounts_for(u, "/tmp", UNIT_DEPENDENCY_FILE, UNIT_MOUNT_WANTS); + r = unit_add_mounts_for(u, "/tmp/", UNIT_DEPENDENCY_FILE, UNIT_MOUNT_WANTS); if (r < 0) return r; - r = unit_add_mounts_for(u, "/var/tmp", UNIT_DEPENDENCY_FILE, UNIT_MOUNT_WANTS); + r = unit_add_mounts_for(u, "/var/tmp/", UNIT_DEPENDENCY_FILE, UNIT_MOUNT_WANTS); if (r < 0) return r; -- 2.47.3