-
Notifications
You must be signed in to change notification settings - Fork 313
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
nodefs API: cannot implement chgrp #107
Comments
This should do it. If you agree I will submit it together with a test case for loopbackfs.
|
rfjakob
added a commit
to rfjakob/go-fuse
that referenced
this issue
May 17, 2016
The special value "-1" for uid or gid means that the value should not be changed. nodefs incorrectly passed 0 for this case, leading to chgrp(1) always failing for non-root mounts. Fixes hanwen#107 . Change-Id: Idbc5b5da92456278a20a50ccd77183ff391b463f
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chgrp(1) actually calls chown(2) with
owner
set to -1.Right now, the nodefs code does not handle chgrp at all, but that could be fixed easily. The real problem is that the parameters for
Node.Chown()
are defined as uint32 instead of int as forsyscall.Chown()
How to fix this? Pass
0xFFFFFFFF
instead of -1 ?The text was updated successfully, but these errors were encountered: