From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81545 invoked by alias); 4 Mar 2019 15:20:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 81538 invoked by uid 89); 4 Mar 2019 15:20:44 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Mar 2019 15:20:43 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MLA6k-1gjhww34U6-00IEMs for ; Mon, 04 Mar 2019 16:20:40 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 2454DA80926; Mon, 4 Mar 2019 16:20:40 +0100 (CET) Date: Mon, 04 Mar 2019 15:20:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: inconsistency in 'access' function between /cygdrive/c and c:/ Message-ID: <20190304152040.GF3785@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.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) X-SW-Source: 2019-03/txt/msg00033.txt.bz2 --HnQK338I3UIa/qiP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 852 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" Content-length: 833 -----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--