From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by sourceware.org (Postfix) with ESMTPS id A4C863858D32 for ; Sun, 22 Jan 2023 19:21:18 +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 (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MwQKr-1oRQmv3Rh7-00sMpK; Sun, 22 Jan 2023 20:21:16 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id BE217A80C97; Sun, 22 Jan 2023 20:21:15 +0100 (CET) Date: Sun, 22 Jan 2023 20:21:15 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Cc: Jeremy Hetzler 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, Jeremy Hetzler References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:AiYfjMxvTX8XW7byxLiCO2jnleVR2HyUoi4zOBFdQ0HhpGbbX3B luJBVqtCqz2KUs0QgUotLmOCH5/jMux+Yh/wH+im/HzJVypR8/dWWDdXITQKhnkdBPQR61+ 3nyJCzV8X8iL9fb2XhxKewxxPHYjEisvNdD76gtAH4Xw+OflQhrzHFiVf5mMWl9b5Mo1nK7 mwhuk8t7W+P13CORWCOPg== UI-OutboundReport: notjunk:1;M01:P0:BjkAdfQ81lQ=;OPCxD99b0ZOEHJkl2w9H/MHev0l 5ts5SPCmP8niR+KzhcR3/EX4lFdF+vAK+uDTMt0wBd+DlSmc3Utn88B4fg4uVuWeuNgiwQaYD 4bFb1dHWnW+FlafhVrlrbjJ7ov2eVR06jYSLaUz+k5AQnHVQofGeCsoaxAv4LD/skdrYzDFog eXyRXv9HljrqscppbhiWALV/nXQ27CGEf4MkH4C7LTL8LQAIdKfRZATbBEOSpihhIbkMBK8lq O5Wqh1uywdEQlLKAGmQGdVHtR0pHpr+wL3wVGtKS+Mj+O2pPeDjhd7NvwUbVoGlaVQ/oRncCs ONOU+s7gnEo2O/AleSsREDudjcd70VEvzMeFZSzmwVdHRivUED38XWmSWOIN+9mR+owEDBS/Q svDt+12uFL8SKo5mGxp6qhgGbkqR1cxSUhvhGJxwWmsiKmER9fQ88c+Qf2a/kKo1BOmG9SN5z RP3iQrcWSAMlsM1BpXtVL5I7bjgK+MqIoSX5syms2HYG/9mi598dAFTGO0hP5Nmm4PnrlsMyY t7tA+uwr98WB1FPgjTcO1U6FMCeFusQepfBK7aj9hSn/9wnXLS/1jPGmLUKgUSOb1bHIsDcpp cHB5MZzooWbRxxnVER0DwxelQMHOlpOww6luWYfU49GZxow9dmmwzgr8Ext8qCpH3CGN5+LG6 7PPPxcgSwGRv41PG6YoaHQR6yleJAZY8gokpe7NWmA== 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 21 11:30, Jeremy Hetzler via Cygwin wrote: > All, > > 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. I pushed a patch and the Cygwin test release 3.5.0-0.138.g6338d2f24a60 is building while I'm replying. Should be up in an hour or so. Thanks, Corinna