Whamcloud - gitweb
libext2fs: improve error handling in POSIX ACL conversions
authorSamuel Holland <samuel@sholland.org>
Sat, 29 May 2021 03:14:04 +0000 (22:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Jul 2021 17:38:14 +0000 (13:38 -0400)
commitea97af65c5194137cec7bd770b79cd601d2a92a0
tree340801d9dd8b4e28adab117af22d2cbbb64728be
parent165c854118a427537ad878ec5ebad5467b536312
libext2fs: improve error handling in POSIX ACL conversions

When encoding a POSIX ACL to the EXT4 ACL format, if an unknown tag
is encountered, that entry is silently ignored. It would be better
to return an error to inform the user that the ACL is incompatible.

Also fix the mismatched indentation in the opposite function.

Signed-off-by: Samuel Holland <samuel@sholland.org>
lib/ext2fs/ext_attr.c