mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2201] [MERGED] Fix extended attribute support when using FUSE-T #2386
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2386
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2201
Author: @macos-fuse-t
Created: 6/26/2023
Status: ✅ Merged
Merged: 6/26/2023
Merged by: @ggtakec
Base:
master← Head:master📝 Commits (3)
7c4fe74Add support for FUSE-T on macos9da7f0fIgnore value pointer when size is zero on setattrxe45c212Merge branch 's3fs-fuse:master' into master📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/s3fs.cpp(+1 -1)📄 Description
This PR fixes extended attribute support when using FUSE-T.
Relevant Issue (if applicable)
Details
When libfuse receives an attribute size of 0, the pointer is not defined and should not be assumed to be NULL.
Relevant libfuse code:
struct fuse_setxattr_in *arg = (struct fuse_setxattr_in *) inarg;
char *name = PARAM(arg);
char *value = name + strlen(name) + 1;
...
req->f->op.setxattr(req, nodeid, name, value, arg->size, arg->flags, arg->position);
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.