-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Support setting setuid/setgid/sticky in updateMetadata #156
Comments
@erikkemperman @piranna would either of you have time to look into this? |
Although I haven't contributed to this project yet, this looks to be in my range of capabilities (I can write tests as well). I wanted to get more information on the change so that I could understand the entirety of solution. Here's what I found:
In this, is the solution to modify getMetaData or getModeDiff? From my perspective, it looks like getModeDiff needs to be altered but I wanted to make sure I know what's going on first. Hope this helps! |
The leading zero indicates an octal number, but is redundant here because the radix 8 is explicitly given. It's just for clarity. In what way is the integer not parsed correctly? I think this is working as intended... The easy part of this issue is the change itself (make the mask |
Apologies, I never use radix. Parsing that string without the radix in parseInt would give you If this is too much for me to take on, that's fine. I've been using Gulp 4 for awhile and was looking for a way to contribute where I could. Thanks for the quick response! |
Using octal numbers for privilege/permission bits is a tradition from UNIX, so this way of writing it will be familiar to folks. This is because there are three bits (read, write, execute), and so all combinations of those can be written as a 3-bit number, which is a single digit in octal. There are digits for "owner", "group" and "others", so that's why the mask is currently I think changing the mask to |
Okay, I think I understand now. Thank you for the explanation. I'll keep ya posted what I come up with if anything!! |
Sure thing -- I was asked to take a look at this issue but am completely swamped at work, so I am glad you're willing to try! Maybe this will help: https://en.wikipedia.org/wiki/File_system_permissions#Traditional_Unix_permissions |
So, since Windows does not have file modes, can we just return like we do for If this is true, I've developed a test branch to see if I could solve this. Since There are currently two broken tests I'm seeing from changing the
|
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
I believe this is done in master now. It will be shipped with 3.0. |
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Adapt tests to support for setuid/setgid/sticky bits Relates to #156
Currently the
MASK_MODE
constant ignores these but we should probably allow them to be set by.dest()
.Ref #151 (comment)
The text was updated successfully, but these errors were encountered: