summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brewer <ben.brewer@codethink.co.uk>2014-05-29 14:40:42 +0100
committerBen Brewer <ben.brewer@codethink.co.uk>2014-06-02 11:03:00 +0100
commit2e3bf668ae17aee6a499e8332541516ecc92e5b0 (patch)
tree3f373ee9c31017db0592808cff9efc06d3fd51f2
parent1dea1372f801e55d09e4abc0c429a479a1ea1bcc (diff)
downloadtbdiff-2e3bf668ae17aee6a499e8332541516ecc92e5b0.tar.gz
Use ENODATA instead of ENOATTR
The man page for lsetxattr says that ENOATTR is a synonym of ENODATA, since ENOATTR is not always available in sys/xattr.h we'll use ENODATA instead.
-rw-r--r--tbdiff/tbdiff-xattrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbdiff/tbdiff-xattrs.c b/tbdiff/tbdiff-xattrs.c
index 0f2adc8..c020ee5 100644
--- a/tbdiff/tbdiff-xattrs.c
+++ b/tbdiff/tbdiff-xattrs.c
@@ -124,7 +124,7 @@ static int name_remove(char const *name, void *ud) {
char const *path = ud;
if (lremovexattr(path, name) < 0) {
switch (errno) {
- case ENOATTR:
+ case ENODATA:
return TBD_ERROR(TBD_ERROR_XATTRS_MISSING_ATTR);
case ENOTSUP:
return TBD_ERROR(TBD_ERROR_XATTRS_NOT_SUPPORTED);