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:subject:from:to:references:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=VKV7 voxQAmNWRoNSsSaH9JUu75FJHZVSIiZxZJ3q0e+52od/eSb+RJPjuBRacPIAmmiI jH/Wc4t1aMzJ18587vpCqtiI8ZI0ruwsjP8xMpUizXm0qPE7gcgFE1psJNPOoJp8 YIYZ370jj9rsRW25KgI7s+oL4m5izkwIA3LKXM8= 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:subject:from:to:references:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=vMExpcFv84 eRX/cOI7pgGoKpgXE=; b=xpM2YrAeSifvFUnisOnT306S7xJ6f1ji+6P17CiJ9p yCVoOcq0oaeAeSIZndMGbI60y5CR+e2O0T4M3Zq4uBEXEYF93W7hmXC/tgI1ur0R OOiabJNvL+prvWbaulnyImvD9v32f7PsPYtf6Qn1gNcuUMU48LBKuKhH4YFRXpHL g= 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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=younger, device, HX-Spam-Relays-External:ESMTPA X-HELO: smtp03.udag.de Subject: Re: ls \\\\\?\\DRIVE\\ Aborted (core dumped) From: =?UTF-8?Q?J=c3=bcrgen_Wagner?= To: cygwin AT cygwin DOT com References: <1569223086 DOT 860642696 AT f357 DOT i DOT mail DOT ru> <5ccc23b3-0240-7382-d018-a7a6bf285f47 AT cornell DOT edu> <5e1afbfe-997a-a528-acfc-38512310041a AT SystematicSw DOT ab DOT ca> <4210536081 DOT 20190924012630 AT yandex DOT ru> <7518af94-3c5b-0019-b99b-8409c138b40c AT wagner DOT is> Message-ID: <392ef59a-ff2f-461d-1f9f-05b1b750e9aa@wagner.is> Date: Tue, 24 Sep 2019 01:42:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <7518af94-3c5b-0019-b99b-8409c138b40c@wagner.is> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms060601070501020504090904" Authentication-Results: smtp03.udag.de; auth=pass smtp.auth=wagneris-0001 smtp.mailfrom=juergen AT wagner DOT is X-IsSubscribed: yes --------------ms060601070501020504090904 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US And there is more fun: $ ls -ldi D:/ 1407374883553285 drwxr-xr-x 1 jw09030 Kein 0 Sep 16 09:02 D:/ $ ls -ldi \\\\\?\\a\\ 1407374883553285 drwxr-xr-x 1 jw09030 Kein 0 Sep 16 09:03 '\\?\a\' $ ls -ldi \\\\\?\\d\\ 1407374883553285 drwxr-xr-x 1 jw09030 Kein 0 Sep 16 09:03 '\\?\d\' $ ls -ldi \\\\\?\\d:\\ 1407374883553285 drwxr-xr-x 1 jw09030 Kein 0 Sep 16 09:02 '\\?\d:\' $ ls -ldi /cygdrive/d/. 1407374883553285 drwxrwx---+ 1 SYSTEM SYSTEM 0 Sep 16 09:02 /cygdrive/d/. $ ls -ldi /cygdrive/d 1407374883553285 drwxrwx---+ 1 SYSTEM SYSTEM 0 Sep 16 09:02 /cygdrive/d $ ls -ldi /d/. 1407374883553285 drwxrwx---+ 1 SYSTEM SYSTEM 0 Sep 16 09:02 /d/. Notice how the \\? listing without the colon is one minute younger than=20 the real directory... apart from the ownership changing. It's always the=20 same inode, though. $ ls -ldi \\\\\?\\d:\\ 1407374883553285 drwxr-xr-x 1 jw09030 Kein 0 Sep 16 09:02 '\\?\d:\' $ ls -ldi \\\\\?\\dd:\\ 18014896789143535314 dr-xr-xr-x 1 jw09030 Kein 0 Sep 24 01:34 '\\?\dd:\' $ ls -ldi \\\\\?\\ddd:\\ 1407374883553285 drwxr-xr-x 1 jw09030 Kein 0 Sep 16 09:02 '\\?\ddd:\' $ ls -ldi \\\\\?\\dddd:\\ assertion "p >=3D path" failed: file=20 "/home/corinna/src/cygwin/cygwin-3.0.7/cygwin-3.0.7-1.x86_64/src/newlib-cyg= win/winsup/cygwin/path.cc",=20 line 2916, function: int symlink_info::check(char*, const suffix_info*,=20 fs_info&, path_conv_handle&) Aborted (core dumped) The inode number which is different from the actual inode number of D:/=20 is not present on drive C: or drive D:. At least, "find" did not turn up=20 anything. Cheers, --j. On 24.09.2019 01:24, J=C3=BCrgen Wagner wrote: > The whole interpretation of paths of this sort seems to be inconsistent. > > ls \\\\\?\\c:\\ > =3D> lists C:/ > > ls \\\\\?\\d:\\ > =3D> lists D:/ > > ls \\\\\?\\blah:\\ > assertion "p >=3D path" failed: file=20 > "/home/corinna/src/cygwin/cygwin-3.0.7/cygwin-3.0.7-1.x86_64/src/newlib-c= ygwin/winsup/cygwin/path.cc",=20 > line 2916, function: int symlink_info::check(char*, const=20 > suffix_info*, fs_info&, path_conv_handle&) > Aborted (core dumped) > > ls \\\\\?\\c\\ > =3D> lists C:/ > > ls \\\\\?\\d\\ > =3D> lists C:/ (in fact, it lists the contents of the top folder of the= =20 > drive your current working directory is located in) > > ls \\\\\?\\a\\ > =3D> lists C:/ (in fact, there is no drive A: on my system) > > ls \\\\.\\d:\\ > ls: cannot access '\\.\d:\': Not a directory > =3D> The alternative notation with a "." does not seem to be understood.= =20 > It works in DOS shells. > > ls //\?/d:/ > ls: cannot access '//?/d:/': Not a directory > =3D> The replacement notation with forward slashes (which works with UNC= =20 > paths) does not seem to be honored here. > > It seems to me the device notation is not really implemented in=20 > Cygwin, and if invalid device paths are used or strange, invalid=20 > syntactic forms are used, this fails with a core dump. > > This is on CYGWIN_NT-10.0 saraswati 3.0.7(0.338/5/3) 2019-04-30 18:08=20 > x86_64 Cygwin on a Dell 5470 with the latest Windows 10 version. > > Best regards, > --J=C3=BCrgen > --------------ms060601070501020504090904 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG 9w0BBwEAAKCCCckwggSMMIIDdKADAgECAghnFU6BeOqp8TANBgkqhkiG9w0B AQsFADBmMQswCQYDVQQGEwJERTEzMDEGA1UECgwqREdOIERldXRzY2hlcyBH ZXN1bmRoZWl0c25ldHogU2VydmljZSBHbWJIMSIwIAYDVQQDDBlkZ25zZXJ2 aWNlIENBIDIgVHlwZSBFOlBOMB4XDTE5MDcxNjExMDg0NVoXDTIwMDcxNTEx MDg0NVowazELMAkGA1UEBhMCREUxITAfBgNVBAUTGDQwMDAwMDAwNWQyZGIy OWIxNTUzZmJkYzEXMBUGA1UEAwwOSsO8cmdlbiBXYWduZXIxIDAeBgkqhkiG 9w0BCQEWEWp1ZXJnZW5Ad2FnbmVyLmlzMIIBIjANBgkqhkiG9w0BAQEFAAOC AQ8AMIIBCgKCAQEAhTqnt5JxHVjyuqAQ/lJgZhYTXZMP3XMeyUBiQry6VvNw M75PAD7VxcCc2A45tq1utFXmPHWW9ilz1c06Cm6DvkGl08JjkmaHjxiYXXPP 7Tiyf2D08kYgThEZVSUs16IQY52UT3JJD5AGpydnHoABLfwCloNIdXWk5vSM GApSggs1hnms3qEwoYzyYhVRDo2+NUbirR0emoa4gtMWJHxbyB3OhwNX1KZX 1jCSn5OaDyJC54OnX9bgPoqQHx2xVjJ7SIX2GImRKkiZCONOl480mitnRAr3 EstSqiNk9fdEKwpfSBe/+F6MYCb3Hx1TkUX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