delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/04/10:20:55

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=Tqmp8zfNYnk7HRqfcD70EqfQdORS0JN6EfdHX+1UZx15I5TtdjIgS
4jfKtDiT/6uJ+DwoAvJz/XgmhfvtsZjUg395JmgrvpNN97JjwmRzshv8iYAHkYF4
xYmfcdnPVY5GlQYJHujI8P3VVDJw5jlvTkhxYQpbY5fR6SC1fhOOhE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=1GH1MmiOUCU3PGznqmx/vvW9mLI=; b=ursjsfzWf15my5FedwLh1kOqQfbC
ci7l/JKq1yO3ewqDSmro6Q8RZo29Tnvu+q84F8ltSWCQ4ulwO/G3uLJDLSCkDcTd
yh+BMkJpinfRqCA58bqPD4UcIFEgoGXiV3wBenC9pdNwgpGGaOLCZeok+t4f+wbo
7UsJRFXPDsrCZ0g=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=mounted, H*F:D*cygwin.com, showing
X-HELO: mout.kundenserver.de
Date: Mon, 4 Mar 2019 16:20:40 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: inconsistency in 'access' function between /cygdrive/c and c:/
Message-ID: <20190304152040.GF3785@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <DB6PR06MB32072B07198D3AE95A4E8919DF710 AT DB6PR06MB3207 DOT eurprd06 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
In-Reply-To: <DB6PR06MB32072B07198D3AE95A4E8919DF710@DB6PR06MB3207.eurprd06.prod.outlook.com>
User-Agent: Mutt/1.11.3 (2019-02-01)

--HnQK338I3UIa/qiP
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> 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

--=20
Corinna Vinschen
Cygwin Maintainer

--HnQK338I3UIa/qiP
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlx9QkcACgkQ9TYGna5E
T6DlEQ//WVOB27sumV/mB9b6NVbVOUOp8dzGFVnJPppoLf6JhL4Cb2ygbHr1amT+
fwgVA6EE9R2chfDnOmikmacg6+JfDWF3mEJ/50JgafpiTZx4n2nM16Kg/Kwsm8iF
tfRBh/KDR385OarFvvnAQUJa1MOo0i/CfdkZdt9BoNJHlM8FPmOw7Iop9sildtsF
PD2L4HkWBWz39tRwq6TF3VrTRILeAY9Q5CVoAMterwRE5HCaCrGUr7fNCTex+PfU
By3JDmekuGUb4ojXp7XLVL/J0B+fWuKsPv2ILa+L+0ISWM+vlfiYrRJgejPTKX6/
TnUPX+eXbVAGpiJ+WDWhvto0PIURl0wttOvYdxdjXGmaYx52P502E/bBi8Waxj8M
dQUtP9dLCHI9RJq9Y92u31USX9JbyBb8XKWOO9BUC0ME0KRw030dYKDclw7MAbyw
vcxwCNuoAB22kVgOCqN0fSnG8Ej4b5ENhpSTl4csD1exJiE9t5G6Qk5YtkMpnL5Q
1ulxGBfkME2aWEspD0w4bT9kTAZM/+4y01muRPQfAOS1VKtSLOGCoQDUK5An0UjZ
KaFrnt9gODAj8QAofPvu+gNaNfhW6d4YraYC8odD2aIj1q4CFX8xMvy8w2uTtXZ+
lVtUuzuc8Xv+pU7oJF5I+8x1Z6Se919UDdpR6LUnYjXTS6fQAqU=
=e82t
-----END PGP SIGNATURE-----

--HnQK338I3UIa/qiP--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019