HomeFreeBSD

Correctly return ERANGE in getxattr(2)

Description

Correctly return ERANGE in getxattr(2)

According to the getxattr(2) man page the ERANGE errno should be
returned when the size of the value buffer is to small to hold the
result. Prior to this patch the implementation would just truncate
the value to size bytes.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1408

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Apr 17 2013, 8:07 PM
Parents
rG254255f735c4: Trivial spelling fix
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGf706421173c5: Correctly return ERANGE in getxattr(2) (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Apr 24 2013, 7:35 PM