mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #82] umask CLI option doesn't handle octal umask value #47
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#47
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?
Originally created by @tmwong2003 on GitHub (Nov 13, 2014).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/82
I ran into the issue with subdirectories in an s3 bucket not having
x-ams-meta-***headers, and therefore appearing to haved---------permissions. The user, group members, and others could not list the subdirectories.I followed the suggestion of setting
umask=022in issue 370 from the Google Code issues (https://code.google.com/p/s3fs/issues/detail?id=370), which forces subdirectories to havedrwxr-xr-xpermissions. The user and group members could then list the subdirectories, but others still could not.It turns out that the parser code for umask values doesn't handle string representations of octal values correctly. The parser code dropped leading zeros and treated the remaining digits as base-10 integers; thus, it was treating octal 022 as base-10 22, i.e., octal 026.
The workaround is to set umask values to hexadecimal values, which the parser code does handle correctly. Thus, for 022, use 0x12.
@ggtakec commented on GitHub (Nov 16, 2014):
Hi, tmwong2003
Thanks very much, I merged pull request #83.
Regards,