delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/23/19:25:32

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:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=bd+M
YPDoeSyp9H4MtqwwIjAPnbPqTer0f69w+/EC22AcnaVQRYHOQcOIc0OyIsvTfZtJ
MenFol1H5nHMUwfSY0k0VLb70/gVEq8zNQGUo2eNs3uFGw0yUlgSGBcotiwTHWFO
aKN2fzavBhMKlVVdq1JFlcPkQtTQLamSCFEu2SY=
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:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=a3OQNDubKi
rwEWg8u53UIWoLC80=; b=fihCdTUywvcYDKLiUgBgcbsgGpQkZCUCwvxcZ53lV0
YlczLFBwb+YmkcPksONLLhwjFGOUhS7vPE5ZRLJiQtGK7mHGzXcCf6vaH2zq5oQ0
743xmbnnqyAmlhCSL1wZUccu7NzwJDvIPWYcAphzHY2+ouqZJMkzSIWQAZWBB3XZ
U=
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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=HAuthentication-Results:smtp.auth, device, HX-Spam-Relays-External:ESMTPA
X-HELO: smtp04-ext2.udag.de
Subject: Re: ls \\\\\?\\DRIVE\\ Aborted (core dumped)
To: cygwin AT cygwin DOT com
References: <1569223086 DOT 860642696 AT f357 DOT i DOT mail DOT ru> <CAJLNCaRU3VtPUu=q+R+-X0PurudJ0_8LmHHGKJkkETJtCPDX3Q AT mail DOT gmail DOT com> <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>
From: =?UTF-8?Q?J=c3=bcrgen_Wagner?= <juergen AT wagner DOT is>
Message-ID: <7518af94-3c5b-0019-b99b-8409c138b40c@wagner.is>
Date: Tue, 24 Sep 2019 01:24:33 +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: <4210536081.20190924012630@yandex.ru>
Authentication-Results: smtp04-ext2.udag.de; auth=pass smtp.auth=wagneris-0001 smtp.mailfrom=juergen AT wagner DOT is
X-IsSubscribed: yes

--------------ms090407000604030603030104
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US

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-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)

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 Cygwin,=20
and if invalid device paths are used or strange, invalid syntactic forms=20
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


On 24.09.2019 00:26, Andrey Repin wrote:
> Greetings, Brian Inglis!
>
>> On 2019-09-23 09:02, Ken Brown wrote:
>>> On 9/23/2019 10:42 AM, Mark Zhitomirski wrote:
>>>> While trying different path names I've hit the following crash:
>>>>
>>>> $ ls \\\\\?\\DRIVE\\
>>>> assertion "p >=3D path" failed: file
>>>> "/home/corinna/src/cygwin/cygwin-3.0.7/cygwin-3.0.7-1.x86_64/src/newli=
b-cygwin/winsup/cygwin/path.cc",
>>>> line 2916, function: int symlink_info::check(char*, const
>>>> suffix_info*, fs_info&, path_conv_handle&)
>>>> Aborted (core dumped)
> $ ls -ld \\\\\?\\C:\\
> drwxr-xr-x 1 anrdaemon None 0 =D1=81=D0=B5=D0=BD 13 23:19 '\\?\C:\'
>
> WJFFM
>
>>> Thanks for the report.  I can confirm the crash.  I'll look into it.
>> Although:
>> $ ll $SYSTEMDRIVE\\
>> lists normally, the owner and group is the current user, whereas the cor=
rect
>> owners and groups are shown by:
>> $ ll /proc/cygdrive/c/
> That did not work for me, both show current user:group.
> For reference,
>
> fstab:
> none / cygdrive noacl,binary,nouser,posix=3D0 0 0
>
> $ mount
> =E2=80=A6
> C: on /c type ntfs (binary,noacl,posix=3D0,noumount,auto)
>
>> and Cygwin really does not like the entries in:
>> $ ll \\\\\?\\*\\
>> use of any name instead of *, or none causes a crash:
>> $ ll \\\\\?\\Boot\\
>> $ ll \\\\\?\\
> I wonder, what have you tried to reach here?
>
>



--------------ms090407000604030603030104
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/+F6MYCb3Hx1TkUX8o3aKanxHFFC69fsXmMGScQID
AQABo4IBNzCCATMwHQYDVR0OBBYEFNpE+B+j7/q326FpBWNyZYFdUPgCMAwG
A1UdEwEB/wQCM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lIEU6UE4CCGcVToF46qnxMIGDBgsq
hkiG9w0BCRACCzF0oHIwZjELMAkGA1UEBhMCREUxMzAxBgNVBAoMKkRHTiBE
ZXV0c2NoZXMgR2VzdW5kaGVpdHNuZXR6IFNlcnZpY2UgR21iSDEiMCAGA1UE
AwwZZGduc2VydmljZSBDQSAyIFR5cGUgRTpQTgIIZxVOgXjqqfEwDQYJKoZI
hvcNAQEBBQAEggEAZcLHBKCDN2+1k/WtlG6Tp8GT8oLC7ZosTwaX3VJceFLO
G+c2d7qaPST2O7eyqmZeG7YJ3TM4AAtjWP+oKQWIHNfNuQUztV7ESZtS37qd
+ug9sJCOdINqvWScfBTYJa6xaYFUf8fE8jOBaXZEcV1I6lbMH9pjDpaiVL3N
qYlum0SlptDSzsR8K8nk+ARwGqhzIwxSmhaeg3rMI74WKSUKrUED0Y19rhYX
LvQRIAWVzHBX8zE0XDB040CKM8Lk+KH7F9449wXYePMAiIcgAqJq16Vh/FY0
fJfTNdipmA883JxJN5OXNtR/nw0l0m4Um92ppTGsAT2DXgIL3U0Kr5p2rgAA
AAAAAA==

--------------ms090407000604030603030104--

- Raw text -


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