Consult the input.Size in order to differentiate two different opcodes of [get|list]attr
Consulting the output size is incorrect as it does not take into account the
cases where an xattr with an empty value exists.
Moreover, treat listxattr exactly the same as getxattr as the two both
can be used for two different operations.
Add a test for an xattr with an empty value
Signed-off-by: Shayan Pooya <shayan@arista.com>
Showing
Please register or sign in to comment