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=iORsE+ILmlwWHxU6PwgLNpQgtwOXblwHXJCb0O5IvVA/2x9t5eD8U gH9n2+eYoCcFFNlu2Ivqx97fudo902LJjt6siCiiAHflydZGlFKh1yrh1Nv0MD73 Y4g3dWFL5oGMPzKUp1fwcnaYXfCb5e8TxGfCY7NZI0aI5C+WZ3QK3I= 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=RbH2U3LC58m2IZXXtTI0SE3yCac=; b=XZ0n1W9jlg6gJB1z499EPf7J1vNi sbYt240Pt9MNmGfM/vUvuL5p7OqWmbUOi3cV4wluEhJ8fqy0TOKYyME9sRXZxF6Q 0UQ09f0VKUm77CsY/g1mGih4wDafqflH5oroJQatuiBVNsyMjAt6VC+lTJtnvDAp NGTlvF3f7eqZkwA= 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=-101.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:2129 X-HELO: mout.kundenserver.de Date: Thu, 5 Dec 2019 20:16:48 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 3.0.7(0.338/5/3): Possible reference to Developer's instances of dev files in deployed build Message-ID: <20191205191648.GC5146@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20191204210222 DOT GA3578 AT shackleton DOT labs DOT net> <754a577d-dac1-16e0-56a7-8be8ab1d424c AT cornell DOT edu> <20191205091807 DOT GG3337 AT calimero DOT vinschen DOT de> <20191205125227 DOT GH3337 AT calimero DOT vinschen DOT de> <04da8ce9-0163-8381-644f-cc7c0f81a5f5 AT cornell DOT edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <04da8ce9-0163-8381-644f-cc7c0f81a5f5@cornell.edu> User-Agent: Mutt/1.12.1 (2019-06-15) --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 5 16:10, Ken Brown wrote: > On 12/5/2019 7:52 AM, Corinna Vinschen wrote: > > On Dec 5 10:18, Corinna Vinschen wrote: > >> On Dec 4 21:41, Ken Brown wrote: > >>> The difference is that NtCreateFile doesn't fail with > >>> STATUS_OBJECT_NAME_NOT_FOUND in the other cases, so the code containi= ng the > >>> assertion doesn't get run. > >>> > >>> BTW, I just tried the following on my system: > >>> > >>> $ ls z:\\ > >>> ls: cannot access 'z:\': No such file or directory > >>> > >>> strace shows that NtCreateFile fails with STATUS_OBJECT_PATH_NOT_FOUN= D in this > >>> case, so again the code containing the assertion is not run. > >>> > >>> To be continued... > >> > >> So, maybe we could just check if ext_here - path > 2, i. e. > >> > >> if (status =3D=3D STATUS_OBJECT_NAME_NOT_FOUND && ext_here - path= > 2) > >> > >> That excludes "X:" paths from this special handling for DOS-only drive= s. > >=20 > > The only problem here is that I can't reproduce the assertion failure. > >=20 > > I created a Samba share on a Linux machine, mounted it as drive Z:, > > and set the "always available offline" property of the drive. > >=20 > > After syncing I accessed the drive, then I stopped Samba on the Linux > > server to switch the drive into offline mode. Then I ran `ls -la > > /cygdrive/z'. After a few secs I got the offline content cached on the > > local machine. I also tried `ls -la /cygdrive/' and `cd /cygdrive; ls > > -la', but every time I got the expected output. In the cases I tried > > to list /cygdrive itself I got the expected output, all drives except > > the z drive. > >=20 > > I tried this with Cygwin 3.1.0-0.8.x86_64 on Windows 7 and Windows 10. > >=20 > > So either there's something very special in Wilfed's setup, or I'm > > doing something wrong. Which is it? >=20 > How does your strace output compare to Wilfed's when you list /cygdrive? = Does=20 > it show a failed attempt to list Z: with an error from NtCreateFile? Not at all. The strace doesn't show any attempt to open Z:. Corinna --=20 Corinna Vinschen Cygwin Maintainer --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl3pV6AACgkQ9TYGna5E T6BwEA//Xsk0+BZnFgOSg/Nrzm8KbhUKRNoC774mG0yuckKpt3Tz98ubotQ47qfa XHmGuzDGJfn4buZm9ApUccTva7rj0IVcXj2LmJk62jcqJP+Sx9ErCEvDJcayAEVz WcCzJvF7Yg8wDdVx6h4Pd5SBETOiq59pzZDDZJGhclRdeu2gIh/qYanDhK1NQkBi UQiuYuogb/hmsH062Q3N0xLoh7+7069k+Q0bmcIPIHaCzao5172dPrdIxP7J9pso gOaN6+hshGvxe0VM8zioaDTfYPWAbZQGvf3q391ENATAsz0Pa0F4aRDoANyMK7Nr m3uqPCPh8H9mfOjZYV+FfWidMBLVC9HIRlLroZljXrwgYg8y5LHpu9WHox4SuvU/ oxI3uA7DzmfLm+71cihl2uep0z7ZQe3QGRLi9FOcXEvSB7UvkjqtJjS2+8cMy0pR 68VFq6va9WXLBxMukb8j/plRpQM0HPTmvIfE6UJGuQzKvAQTzhB9VCAx+H3BJaJh 9rQxn8veLZ39d0mbX0l93R5TvRcxFR+pPEyyT/vGv7X1y94Ini8onifh5oQz23fS dfxyRrfUbmHsYTEO04UBqP/EDc9n1oVdkbIPQWOz58JTo0iGnCKY8b/HI4rvFPpx 4QGfnawVEm+T45hNQKK+8IoEDeMM1ai16JpSyK8mvqqGig5aJl4= =K2c3 -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--