public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: inconsistency in 'access' function between /cygdrive/c and c:/
Date: Mon, 04 Mar 2019 15:20:00 -0000	[thread overview]
Message-ID: <20190304152040.GF3785@calimero.vinschen.de> (raw)
In-Reply-To: <DB6PR06MB32072B07198D3AE95A4E8919DF710@DB6PR06MB3207.eurprd06.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

On Mar  4 15:01, Christopher Jefferson wrote:
> The following issue was reported to me. I've reproduced it on Cygwin 2
> and 3, on a couple of machines.
> 
> When using paths beginning 'C:/' the 'access' function claims that
> directories are readable when they are not. The same problem does not
> arise when starting the same directory name with '/cygdrive/c/'. I
> attach a minimal example program showing the problem. When I run it it
> returns that both ways of naming 'System Volume Information' exist,
> but that 'C:/System Volume Information' can be Read (which is wrong),
> while '/cygdrive/c/System Volume Information' can't be Read.

This is by design.  When using Windows paths, the path is treated
as if mounted with "caseinsensitive,noacl" mount flags.

Just use POSIX paths instead.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2019-03-04 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-04 15:01 Christopher Jefferson
2019-03-04 15:20 ` Corinna Vinschen [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=20190304152040.GF3785@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --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).