From: Daan De Meyer Date: Mon, 10 Oct 2022 16:12:15 +0000 (+0200) Subject: repart: Fix copy failure error message X-Git-Tag: v253-rc1~520^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf2ed23cd23d1236086280db1947fe7099caba9a;p=thirdparty%2Fsystemd.git repart: Fix copy failure error message --- 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;