inconsistency in 'access' function between /cygdrive/c and c:/

Corinna Vinschen
Mon Mar 4 15:20:00 GMT 2019

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 Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <>

More information about the Cygwin mailing list