X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F2373858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1674480029; bh=QC1sQ6mSITfCHDoEAz2yjJa2VNQRzuBdybFoHpKs6Lg=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=hcR4l1+s/H9nLTGVPOX8mGdYR2mspBfSp7dYHJ9BFi1ebmMMARNIsRirCvIh/5fHr OVIRL+YQKrq5Tzr0plUG97u8GHaFI/a9DUpy/ngsABFVyn2vwTJS2QjA43xHl+KZhD OG8y3v+pcGfGCB9b+lKp8cOXz/pTaHvJk1R03NdQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com Date: Mon, 23 Jan 2023 14:19:48 +0100 To: cygwin AT cygwin DOT com Subject: Re: [bug?] cygwin cannot mount smb shares beginning with underscore; "Invalid argument" Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple