Whamcloud - gitweb
libext2fs: fix translation of Posix ACL's on big-endian systems
authorTheodore Ts'o <tytso@mit.edu>
Fri, 30 Jul 2021 16:29:44 +0000 (12:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Jul 2021 16:29:44 +0000 (12:29 -0400)
commit7a97083d4350b93f4055bdd8465667cecbb36438
tree0b0fa4e6e5c5b1aa0ef65defcf26a5e7e2dafc4c
parent654be045a8e4e5f1e1d4387b987c036439809059
libext2fs: fix translation of Posix ACL's on big-endian systems

The ACL returned by the kernel in lgetxattr(2) is returned in Little
Endian, even on Big Endian systems.  Fix the functions
convert_posix_acl_to_disk_buffer() and convert_disk_buffer_to_posix_acl()
to work correctly on Big Endian systems.  This fixes a failure of
the test m_rootdir_acl.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext_attr.c