From cf2ed23cd23d1236086280db1947fe7099caba9a Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 10 Oct 2022 18:12:15 +0200 Subject: [PATCH] repart: Fix copy failure error message --- src/partition/repart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/partition/repart.c b/src/partition/repart.c index ba7fcc5e7a9..f99d475e7ff 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -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; -- 2.47.3