Fix extended attribute support when using FUSE-T (#2201)
* Add support for FUSE-T on macos Signed-off-by: Alex Fishman <alex@fuse-t.org> Signed-off-by: alex <alex@alex-NUC10.lan> * Ignore value pointer when size is zero on setattrx Signed-off-by: Alex Fishman <alex@fuse-t.org> --------- Signed-off-by: Alex Fishman <alex@fuse-t.org> Signed-off-by: alex <alex@alex-NUC10.lan>
This commit is contained in:
parent
e66c9a82a2
commit
03066ea29a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue