mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-13 00:58:43 +03:00
Merge pull request #2179 from cgwalters/ioctl-fix
linuxfsutil: Pass int to ioctl, not long
This commit is contained in:
commit
2596a718ce
@ -55,7 +55,7 @@ _ostree_linuxfs_fd_alter_immutable_flag (int fd,
|
|||||||
if (g_atomic_int_get (&no_alter_immutable))
|
if (g_atomic_int_get (&no_alter_immutable))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
unsigned long flags;
|
int flags = 0;
|
||||||
int r = ioctl (fd, EXT2_IOC_GETFLAGS, &flags);
|
int r = ioctl (fd, EXT2_IOC_GETFLAGS, &flags);
|
||||||
if (r == -1)
|
if (r == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user