Web lists-archives.com

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




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: signature.asc
Description: PGP signature