tmpfiles: fix doubled "/" in root + path logging

This commit is contained in:
Mike Yuan
2026-02-27 17:07:43 +01:00
parent 0dbd116351
commit b1c6bcf949
+2 -2
View File
@@ -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);