From b1c6bcf94953d98614ddf2fb320b553e5c9d1bd0 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Fri, 27 Feb 2026 17:04:41 +0100 Subject: [PATCH] tmpfiles: fix doubled "/" in root + path logging --- src/tmpfiles/tmpfiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 59adcc61ca..fcff090af3 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -2385,12 +2385,12 @@ static int create_symlink(Context *c, Item *i) { if (r == -ENOENT) { /* Silently skip over lines where the source file is missing. */ log_info("Symlink source path '%s/%s' does not exist, skipping line.", - empty_to_root(arg_root), skip_leading_slash(i->argument)); + strempty(arg_root), skip_leading_slash(i->argument)); return 0; } if (r < 0) return log_error_errno(r, "Failed to check if symlink source path '%s/%s' exists: %m", - empty_to_root(arg_root), skip_leading_slash(i->argument)); + strempty(arg_root), skip_leading_slash(i->argument)); } r = path_extract_filename(i->path, &bn);