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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HnQK338I3UIa/qiP" Content-Disposition: inline In-Reply-To: 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--