repart: Fix copy failure error message

This commit is contained in:
Daan De Meyer
2022-10-10 18:12:15 +02:00
parent 4ecd39c511
commit cf2ed23cd2

View File

@@ -3556,7 +3556,8 @@ static int do_copy_files(Partition *p, const char *root, const Set *denylist) {
COPY_REFLINK|COPY_HOLES|COPY_MERGE|COPY_REPLACE|COPY_SIGINT|COPY_HARDLINKS|COPY_ALL_XATTRS,
denylist);
if (r < 0)
return log_error_errno(r, "Failed to copy '%s' to '%s%s': %m", *source, strempty(arg_root), *target);
return log_error_errno(r, "Failed to copy '%s%s' to '%s%s': %m",
strempty(arg_root), *source, strempty(root), *target);
} else {
_cleanup_free_ char *dn = NULL, *fn = NULL;