From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by sourceware.org (Postfix) with ESMTPS id 5E45B3858D32 for ; Mon, 23 Jan 2023 13:19:51 +0000 (GMT) Authentication-Results: sourceware.org; dmarc=permerror header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M2fDl-1pGMu23ogp-0049RO for ; Mon, 23 Jan 2023 14:19:49 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id CA82DA80C84; Mon, 23 Jan 2023 14:19:48 +0100 (CET) Date: Mon, 23 Jan 2023 14:19:48 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [bug?] cygwin cannot mount smb shares beginning with underscore; "Invalid argument" Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:Q/EFUzzgVmOYUIMFXf3/X/elgwbTMHGT7fRLLOVxcrzxQjXTgZq Yg1epu738K9Mz2j4QwDyslqU5FUDkAvbDL20Mtb3KVaeeMpogH224nyABQwAPtETJbAZBHw qAupCXONFmCvNRdtMqkgJ4ZSexTSIV0Z+VOt3XFx9yZXNXPYX4XZkyIBnT1YCcT9PoAsWUM JyUD0wsE9PihhtjurbQ4w== UI-OutboundReport: notjunk:1;M01:P0:VLLVqhLhsDc=;5pBiVeOwpFPXCWeipQfpeGtoGgR xiHns6rj5ofPhCQo5rVQNRz5KGtkpkc7zO5u39u6EPkCzlb9Kr8m50qdjlKTlNpz4s0aXtYiq udRxW4J2smSx3sNlmbQpqfXNUEgsZk47kRS6mfhmn7J8Y8NCVB0Iqt8Mu11i8b2sOuT39Vt8I 3UwcyUaK2Hp9FP4T53vRvA5X/cTRod59Oae3gSrZG1lTx97pRac6rSMvUSJPoer0S+AmLwtvt VVNv0nHU9unIhAbPqt0ZzkhmNHHqko8gdAUFEMDh+V8vlM7Xd5Lq0vG/PJyM3LsWLu2q6yrc6 qZ79apx6KAZl5Y5rSAGKSvY7oOBuZSGoJxLglaGUPjiUecKiVQ2aXx4ZlgiUEPjYJxl5pPeiu jPCzvyiFghPvaM4RolrPz+us/yKqRGsIIi69h+QUJudumUusp1YUVdsp2tWCZZUBJp6LypCC4 DGAdhjlD2wXD7ttG4mOo0edtX9ECfil8nxIrRTe0zFw7uDvl+oDK3xSusVKhpRsg/xQ4eEi10 2OVrveQeYv/rfQRfUVi2BmVdTf2zncT074MeoGl4Ym5k2D1oKn7hwtip+SFXVdWFy1aNCjoIc SdhpI772qWeAHPL2AlOpl07X99p/j30ZbkRwUdmCRD2qEmRUCd64WDJGQymBqeE6m9ga3Daob 7CLJBZdvWjMUGzwhVEKGJb+dfThUlu1kuUaLUxaYcQ== X-Spam-Status: No, score=-97.2 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_FAIL,SPF_HELO_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Jan 22 12:56, Brian Inglis via Cygwin wrote: > On 2023-01-22 12:21, Corinna Vinschen via Cygwin wrote: > > On Jan 21 11:30, Jeremy Hetzler via Cygwin wrote: > > > First, thank you for many years of Cygwin. > > > > > > I'm unable to get Cygwin to mount Windows SMB shares where the share > > > name begins with underscore. mount gives an error "Invalid argument". > > > > Yes, that's actually a bug. The mount code path in Cygwin checks > > the path for being a share (i.e. \\server\share\... syntax) > > > > The code, which, incidentally, has only been marginally changed since > > its inception pre-2000, is expecting that server name as well as share > > name both start with an alphanumeric ASCII char. > > > > That means, right now you can't mount servers and shares starting with > > any character other than [0-9a-zA-Z]. D'oh. > > https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/naming-conventions-for-computer-domain-site-ou > > looks like embedded not initial or final "-" hyphen/minus is also allowed as > well as an initial "_" underscore like DNS names. I also checked https://answers.microsoft.com/en-us/windows/forum/all/which-characters-are-acceptable-for-a-computer/fddb4895-4295-47ab-a2b9-7773b329718c and pushed another patch to distinguish valid chars for server name and share name. The Cygwin test release containing this patch, 3.5.0-0.139.gcad3913ed8b1, is just being built. Thanks, Corinna