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

Eventually add write permission when setting extended attributes #212

Merged
merged 3 commits into from
Sep 26, 2021

Conversation

TomasKorbar
Copy link
Contributor

When we need to set extended atributes of file which does not
allow write then temporarily add write permission and after
attributes are set, remove it again.

Resolves #208

When we need to set extended atributes of file which does not
allow write then temporarily add write permission and after
attributes are set, remove it again.

Resolves RsyncProject#208
- Make use of the sxp->st data instead of doing a new stat.
- Only try adding S_IWUSR perm since only owner can chmod.
- Skip the code if am_root is set.
@WayneD WayneD merged commit b2e16fa into RsyncProject:master Sep 26, 2021
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.

Extended attributes can not be set on file without write permissions
2 participants