summaryrefslogtreecommitdiff
path: root/src/dissect
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/dissect
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/dissect')
-rw-r--r--src/dissect/dissect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c
index f435932815..8d3d3712d7 100644
--- a/src/dissect/dissect.c
+++ b/src/dissect/dissect.c
@@ -1105,7 +1105,7 @@ static int action_list_or_mtree_or_copy(DissectedImage *m, LoopDevice *d) {
if (r < 0)
return log_error_errno(r, "Failed to copy bytes from %s in mage '%s' to '%s': %m", arg_source, arg_image, arg_target);
- (void) copy_xattr(source_fd, target_fd, 0);
+ (void) copy_xattr(source_fd, NULL, target_fd, NULL, 0);
(void) copy_access(source_fd, target_fd);
(void) copy_times(source_fd, target_fd, 0);
@@ -1182,7 +1182,7 @@ static int action_list_or_mtree_or_copy(DissectedImage *m, LoopDevice *d) {
if (r < 0)
return log_error_errno(r, "Failed to copy bytes from '%s' to '%s' in image '%s': %m", arg_source, arg_target, arg_image);
- (void) copy_xattr(source_fd, target_fd, 0);
+ (void) copy_xattr(source_fd, NULL, target_fd, NULL, 0);
(void) copy_access(source_fd, target_fd);
(void) copy_times(source_fd, target_fd, 0);