This is the mail archive of the
mailing list for the Cygwin project.
Re: LDAP integration / ACL in Perl revisited
- From: Achim Gratz <Stromeko at NexGo dot DE>
- To: cygwin at cygwin dot com
- Date: Wed, 25 Jun 2014 06:44:00 +0000 (UTC)
- Subject: Re: LDAP integration / ACL in Perl revisited
- Authentication-results: sourceware.org; auth=none
- References: <loom dot 20140624T134009-507 at post dot gmane dot org> <20140624171306 dot GK1803 at calimero dot vinschen dot de>
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> But when I run this via a perl script:
> $ cat > x.pl <<EOF
> use v5.10;
This should be "use 5.14;" to do the same thing as "-E", I think.
> Since test(1) is doing the right thing and returning the right results,
> I'm blaming perl for now.
I've tested this again on a different file and a different machine and using
Cygwin32 via an admin CMD and a non-Admin one started from the same account.
The straces this time are exactly identical save for the file handles, yet
the outcome of the test is "no" for non-Admin and "yes" for Admin
invocation. Neither access nor euidaccess are called either way, so there
must be some heuristics in Cygwin Perl that try to infer access from the
stat information alone. Why it doesn't pick up the fact that ACL are
involved I can't say.
The test executable on the other hand calls check_file_access, which then
traces into euidaccess.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple