public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Achim Gratz <Stromeko@NexGo.DE>
To: cygwin@cygwin.com
Subject: Re: LDAP integration / ACL in Perl revisited
Date: Wed, 25 Jun 2014 06:44:00 -0000	[thread overview]
Message-ID: <loom.20140625T083407-291@post.gmane.org> (raw)
In-Reply-To: <20140624171306.GK1803@calimero.vinschen.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.


Regards,
Achim.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

      parent reply	other threads:[~2014-06-25  6:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-24 12:19 Achim Gratz
2014-06-24 17:13 ` Corinna Vinschen
2014-06-24 17:45   ` Achim Gratz
2014-06-25  6:44   ` Achim Gratz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20140625T083407-291@post.gmane.org \
    --to=stromeko@nexgo.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).