]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: Fix copy failure error message
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 10 Oct 2022 16:12:15 +0000 (18:12 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 15 Nov 2022 19:23:51 +0000 (20:23 +0100)
src/partition/repart.c

index ba7fcc5e7a973ccda2e1cceda32355e2647827ff..f99d475e7ffaf53d409d5aa383def274a6fba6b7 100644 (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;