This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Fri, 9 May 2003, Winston Gutkowski wrote:This doesn't look right! How can +2 be both all and any?!?
Don't want to flog a dead horse, but if I read the manpages right it seems that -222 should be true only if the 'w' flag is on in all 3 positions, but +222 will be true only if the 'w' flag is on in *any* of the 3 positions.
Is this right? Also, I didn't find any refernce to the shorthand +2. Perhaps it's one of those mystical osmosis things...:-)
My reading of the manual is that:
-222 examines bit 2 being on in all of the 3 areas
+2 examines bit 2 being on in all of the 3 areas
222 checks exact permissions 222
Erm. +2 examines bit 2 being on in all of the 3 areas should read +2 examines bit 2 being on in any of the 3 areas
A little careless vi yy
I could be mistaken, but -perm +2 has always worked for me. I'll test it later.Either I'm dense or you're mistaken.-perm +mode Any of the permission bits mode are set for the file.
-perm -222 is equivalent to -perm +2
Are you assuming a FAT file system? Cygwin takes advantage of NTFS permissions when possible (and when the now-default ntsec option of the CYGWIN environment variable is enabled).Nope, and yes, am aware :)
Randall Schulz
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |