summaryrefslogtreecommitdiff
path: root/src/partition
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-02-13 21:51:11 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-02-14 12:51:40 +0100
commitc17cfe6ef7bc1ac4501b5f6e7d4f4efc08aef439 (patch)
tree5ec271d10ba3d521e8b2694e139ef6814b1142cd /src/partition
parenta4d2461c46f40c9ae5002a2aea35b35ccb60ef9c (diff)
downloadsystemd-c17cfe6ef7bc1ac4501b5f6e7d4f4efc08aef439.tar.gz
copy: Make copy_xattr() more generic
Let's make copy_xattr() a little more generic in preparation for copying symlink xattrs.
Diffstat (limited to 'src/partition')
-rw-r--r--src/partition/repart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c
index 6ba48b528e..43f25e7e59 100644
--- a/src/partition/repart.c
+++ b/src/partition/repart.c
@@ -3840,7 +3840,7 @@ static int do_copy_files(Partition *p, const char *root, const Set *denylist) {
if (r < 0)
return log_error_errno(r, "Failed to copy '%s' to '%s%s': %m", *source, strempty(arg_root), *target);
- (void) copy_xattr(sfd, tfd, COPY_ALL_XATTRS);
+ (void) copy_xattr(sfd, NULL, tfd, NULL, COPY_ALL_XATTRS);
(void) copy_access(sfd, tfd);
(void) copy_times(sfd, tfd, 0);
}