public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mario Emmenlauer <mario@emmenlauer.de>
To: cygwin@cygwin.com
Subject: Re: test -r or -x always return false on an NFS mount?
Date: Wed, 14 Oct 2020 16:57:56 +0200	[thread overview]
Message-ID: <9e779a6f-288c-f9aa-615f-75f74192558a@emmenlauer.de> (raw)
In-Reply-To: <20201014115021.GC26704@calimero.vinschen.de>

On 14.10.20 13:50, Corinna Vinschen wrote:
> On Oct 14 11:06, Mario Emmenlauer wrote:
>> On 14.10.20 10:28, Corinna Vinschen wrote:
>>> Actually, not really.  It's weird in fact, given ls(1) shows the
>>> desired result.  That would point to a bug in access(2), but there's
>>> no special code in access(2) for NFS.  For filesystems not supporting
>>> ACLs (FAT, NFS, etc), it calls stat(2) and checks the st_mode bits
>>> against the requested access(2) mode based on the uid/gid of the
>>> caller, simple as that.
>>
>> Hmm, now that you mention it, I just coincidentally found an issue
>> with the `_stat` call in Microsoft Windows 2004 update. In the Apache
> 
> This is entirely unrelated.  We're talking about Cygwin stat(2),
> not msvcrt.dll _stat().  Different source, different call.

Yes, but Cygwin stat is implemented based on the Win32 posix layer too,
or not? At least I got this impression from browsing the sources -
albeit admittedly there are far too many indirections and ifdefs for
me to really know what's going on... :-) :-)

All the best,

    Mario

  reply	other threads:[~2020-10-14 14:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-22 20:14 Mario Emmenlauer
2020-10-01 10:22 ` Mario Emmenlauer
2020-10-06  1:41   ` Ken Brown
2020-10-06 15:46 ` Andrey Repin
2020-10-06 16:10   ` Mario Emmenlauer
2020-10-13 18:36     ` Corinna Vinschen
2020-10-13 19:00       ` Mario Emmenlauer
2020-10-14  8:28         ` Corinna Vinschen
2020-10-14  9:06           ` Mario Emmenlauer
2020-10-14 11:50             ` Corinna Vinschen
2020-10-14 14:57               ` Mario Emmenlauer [this message]
2020-10-15  8:16                 ` Corinna Vinschen

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=9e779a6f-288c-f9aa-615f-75f74192558a@emmenlauer.de \
    --to=mario@emmenlauer.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).