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

handle umask #133

Open
jti-lanl opened this issue May 24, 2016 · 0 comments
Open

handle umask #133

jti-lanl opened this issue May 24, 2016 · 0 comments

Comments

@jti-lanl
Copy link
Contributor

fuse_chmod(), fuse_open() and fuse_mknod() could get umask as fuse_get_context()->umask. They could then pass this as an arg to their libmarfs counterparts. Then pftool's MARFS_Path should do something similar, using umask().

[NOTE: umask() sets the umask to the argument and returns the old value. So I guess one must call it twice, to retrieve the current value without changing it, leaving it momentarily wrong, during the period between the two calls.]

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

No branches or pull requests

1 participant