Add support for 'position' argument in macOS xattr functions.
commit1511a5ca51ba52b3b27bc4f00210f9e7f28f72c3
authorErik Larsson <erik@tuxera.com>
Tue, 25 Aug 2020 08:26:29 +0000 (25 11:26 +0300)
committerErik Larsson <erik@tuxera.com>
Tue, 25 Aug 2020 08:26:29 +0000 (25 11:26 +0300)
tree5765aaa9a7ce78f2425a1e654fd4adbaf4cd812b
parent4ecc13c0acdb12b0a4bf22d0077406e0840679db
Add support for 'position' argument in macOS xattr functions.

The 'position' argument is only used for the legacy resource fork and is
disallowed for other extended attributes. The name check is placed first
in the functions as this is how macOS behaves (EINVAL is returned if the
attribute is not the resource fork attribute and the position is non-0
even when the attribute does not exist).
src/lowntfs-3g.c
src/ntfs-3g.c