projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c61ff03
)
linuxfsutil: Pass int to ioctl, not long
author
Colin Walters
<walters@verbum.org>
Fri, 21 Aug 2020 17:40:41 +0000
(17:40 +0000)
committer
Colin Walters
<walters@verbum.org>
Fri, 21 Aug 2020 17:41:32 +0000
(17:41 +0000)
Otherwise it will fail on big-endian architectures like s390x.
Ref https://bugzilla.redhat.com/show_bug.cgi?id=
1867601
src/libostree/ostree-linuxfsutil.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-linuxfsutil.c
b/src/libostree/ostree-linuxfsutil.c
index 231ecf76a8075dcfff4a9bbe956f61fc227f0718..cb778def9c54ebf08aa6b36d31f436184649587f 100644
(file)
--- a/
src/libostree/ostree-linuxfsutil.c
+++ b/
src/libostree/ostree-linuxfsutil.c
@@
-55,7
+55,7
@@
_ostree_linuxfs_fd_alter_immutable_flag (int fd,
if (g_atomic_int_get (&no_alter_immutable))
return TRUE;
-
unsigned long flags
;
+
int flags = 0
;
int r = ioctl (fd, EXT2_IOC_GETFLAGS, &flags);
if (r == -1)
{