OSDN Git Service

Fix argument type for FS_IOC_GETFLAGS and FS_IOC_SETFLAGS
authorEric Biggers <ebiggers@google.com>
Fri, 23 Oct 2020 23:32:58 +0000 (16:32 -0700)
committerDaniel Rosenberg <drosen@google.com>
Wed, 28 Oct 2020 04:48:09 +0000 (04:48 +0000)
commitf9d9ac29d0dc3e9b7c7fee7173a57b961facd4a4
treedecb3ab2a0d2400964e2d8766df91eab6435064b
parentcb581cc8de8f5939d8fba6d333defa3cb5189c4d
Fix argument type for FS_IOC_GETFLAGS and FS_IOC_SETFLAGS

These ioctls take a pointer to an 'int' (or an 'unsigned int', it
doesn't matter), not an 'unsigned long'.  See 'man ioctl_iflags'.
Presumably it happened to work anyway because Android only runs on
little endian platforms.

Bug: 146419093
Bug: 163453310
Change-Id: I73099dafd4ee8d497c0a754149271871a37454f6
Signed-off-by: Eric Biggers <ebiggers@google.com>
Utils.cpp