-
Notifications
You must be signed in to change notification settings - Fork 571
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
Perl second-guesses Cygwin for permission override, sometimes incorrectly #14845
Comments
From vano@mail.mipt.ruCreated by vano@mail.mipt.ruFollow-up of #125740. When checking `-r/-w file', pp_ftrread (pp_sys.c:3071) Sometimes, it guesses incorrectly: Since commit https://cygwin.com/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=2c1ffdbf5e6f2767ab63e67834530539d36c6c0b, Perl Info
|
From @tonycozOn Tue Aug 11 08:31:30 2015, vano@mail.mipt.ru wrote:
That the permission check operators work off the mode is explicitly documented (from =item -X in perlfunc.pod): The interpretation of the file permission operators C<-r>, C<-R>, Also note that, for the superuser on the local filesystems, the C<-r>, as is the mechanism to use access(): If you are using ACLs, there is a pragma called C<filetest> that may Is this documented behaviour what you were trying to report? If it was something else please provide some sample code. Thanks, |
The RT System itself - Status changed from 'new' to 'open' |
From vano@mail.mipt.ru
In these terms, Perl incorrectly detects if the current user is a "superuser" -- |
From @tonycozOn Thu Aug 13 04:25:25 2015, vano@mail.mipt.ru wrote:
Is there a correct check? Or is cygwin's emulation of mode flags (because of Win32) sufficiently non-POSIX that it isn't possible to get even close to making it work? Are you suggesting a fix? If it's "use access()" then you already have an option to do so. Tony |
From Stromeko@nexgo.deTony Cook via RT <perlbug-followup <at> perl.org> writes:
Perl doesn't have the distinction of checking for "permission overrides", it
There's a few things that don't translate well at the moment if ACL are
That option would only be viable if it filled the stat cache and allowed Regards, |
From vano@mail.mipt.ruWednesday, August 19, 2015, 9:20:14 Tony:
It's not about using `access' or not using `access'. It's about The only other way is, well, replicating Cygwin's logic implemented in -- |
From vano@mail.mipt.ru
Yet another way is to declare -r/-w without "use filetest 'access'" This might actually be a good thing: interpreting the bits by hand where there -- |
Migrated from rt.perl.org#125788 (status was 'open')
Searchable as RT125788$
The text was updated successfully, but these errors were encountered: