From 03066ea29a0a6bb2751ed67fcbc01bc9da5576ad Mon Sep 17 00:00:00 2001 From: Alex Fishman <112765845+macos-fuse-t@users.noreply.github.com> Date: Mon, 26 Jun 2023 16:05:37 +0300 Subject: [PATCH] Fix extended attribute support when using FUSE-T (#2201) * Add support for FUSE-T on macos Signed-off-by: Alex Fishman Signed-off-by: alex * Ignore value pointer when size is zero on setattrx Signed-off-by: Alex Fishman --------- Signed-off-by: Alex Fishman Signed-off-by: alex --- src/s3fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 3aa08f9..aea667d 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -3778,7 +3778,7 @@ static int s3fs_setxattr(const char* path, const char* name, const char* value, { S3FS_PRN_INFO("[path=%s][name=%s][value=%p][size=%zu][flags=0x%x]", path, name, value, size, flags); - if((value && 0 == size) || (!value && 0 < size)){ + if(!value && 0 < size){ S3FS_PRN_ERR("Wrong parameter: value(%p), size(%zu)", value, size); return 0; }