Blame SOURCES/0001-linuxfsutil-Pass-int-to-ioctl-not-long.patch

8b8764
From 06ed04a816141914adb9bd3e32392801fce5bc8e Mon Sep 17 00:00:00 2001
8b8764
From: Colin Walters <walters@verbum.org>
8b8764
Date: Fri, 21 Aug 2020 17:40:41 +0000
8b8764
Subject: [PATCH] linuxfsutil: Pass int to ioctl, not long
8b8764
8b8764
Otherwise it will fail on big-endian architectures like s390x.
8b8764
Ref https://bugzilla.redhat.com/show_bug.cgi?id=1867601
8b8764
---
8b8764
 src/libostree/ostree-linuxfsutil.c | 2 +-
8b8764
 1 file changed, 1 insertion(+), 1 deletion(-)
8b8764
8b8764
diff --git a/src/libostree/ostree-linuxfsutil.c b/src/libostree/ostree-linuxfsutil.c
8b8764
index 231ecf76..cb778def 100644
8b8764
--- a/src/libostree/ostree-linuxfsutil.c
8b8764
+++ b/src/libostree/ostree-linuxfsutil.c
8b8764
@@ -55,7 +55,7 @@ _ostree_linuxfs_fd_alter_immutable_flag (int            fd,
8b8764
   if (g_atomic_int_get (&no_alter_immutable))
8b8764
     return TRUE;
8b8764
 
8b8764
-  unsigned long flags;
8b8764
+  int flags = 0;
8b8764
   int r = ioctl (fd, EXT2_IOC_GETFLAGS, &flags);
8b8764
   if (r == -1)
8b8764
     {
8b8764
-- 
8b8764
2.26.2
8b8764