summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--props.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/props.c b/props.c
index 4d0aeeab..c09865b3 100644
--- a/props.c
+++ b/props.c
@@ -142,10 +142,12 @@ static int prop_compression(enum prop_object_type type,
sret = fgetxattr(fd, xattr_name, NULL, 0);
if (sret < 0) {
ret = -errno;
- if (ret != -ENODATA)
+ if (ret != -ENOATTR)
fprintf(stderr,
"ERROR: failed to %s compression for %s. %s\n",
value ? "set" : "get", object, strerror(-ret));
+ else
+ ret = 0;
goto out;
}
if (!value) {