deploy: Fix enum type mismatch in copy flags
authorbbhtt <bbhtt.zn0i8@slmail.me>
Sat, 16 May 2026 07:01:33 +0000 (12:31 +0530)
committerColin Walters <walters@verbum.org>
Fri, 31 Jul 2026 11:23:11 +0000 (07:23 -0400)
Fixes: https://github.com/ostreedev/ostree/issues/3591
src/libostree/ostree-sysroot-deploy.c

index 77b601ff42275da3750c7a7f46b785fc5c1630d4..94de4239e851e1a6af7afcdabb50421c86b5545e 100644 (file)
@@ -399,8 +399,9 @@ again:
   if (!glnx_opendirat (new_etc_fd, path, TRUE, &target_dfd, error))
     return FALSE;
 
-  if (!dirfd_copy_attributes_and_xattrs (modified_etc_fd, path, src_dfd, target_dfd, flags,
-                                         cancellable, error))
+  if (!dirfd_copy_attributes_and_xattrs (modified_etc_fd, path, src_dfd, target_dfd,
+                                         sysroot_flags_to_copy_flags (0, flags), cancellable,
+                                         error))
     return FALSE;
 
   if (out_dfd)