summaryrefslogtreecommitdiff
path: root/props.c
diff options
context:
space:
mode:
Diffstat (limited to 'props.c')
-rw-r--r--props.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/props.c b/props.c
index 94b43b40..cddbd927 100644
--- a/props.c
+++ b/props.c
@@ -143,7 +143,7 @@ static int prop_compression(enum prop_object_type type,
xattr_name[XATTR_BTRFS_PREFIX_LEN + strlen(name)] = '\0';
if (value) {
- if (strcmp(value, "no") == 0)
+ if (strcmp(value, "no") == 0 || strcmp(value, "none") == 0)
value = "";
sret = fsetxattr(fd, xattr_name, value, strlen(value), 0);
} else {