Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix extended attribute support when using FUSE-T #2201

Merged
merged 3 commits into from
Jun 26, 2023

Conversation

macos-fuse-t
Copy link
Contributor

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);

macos-fuse-t and others added 3 commits June 22, 2023 10:37
Signed-off-by: Alex Fishman <alex@fuse-t.org>
Signed-off-by: alex <alex@alex-NUC10.lan>
Signed-off-by: Alex Fishman <alex@fuse-t.org>
@ggtakec
Copy link
Member

ggtakec commented Jun 26, 2023

@macos-fuse-t Thanks for your kindness.

@ggtakec ggtakec merged commit 03066ea into s3fs-fuse:master Jun 26, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants