From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id 2301E3858D32 for ; Sun, 22 Jan 2023 19:56:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2301E3858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTP id JS3spJbsic9C4JgS6pg3GF; Sun, 22 Jan 2023 19:56:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1674417390; bh=/35096MIXihHtlcE690N60ZsX2I3sOlbEZBiDNI3KOI=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To; b=Y/fULh0VfrE6fYxRzKlpOBMVhaMp6f/h8Eve7nV+1nGLCHAOdfPuw4iM6pBMBXbVv pLXr0z9fxgyCPpt+bZK2WLXBhbfwmrh2HIk0+MgWDXPH9gSyjgk8hCLKOBodAjmgol zvC3ZkYkCvMQRFMwrYDLLekX+27C/agBcQUJv6xLCZVOwkYWGj/QhNH419UEKTleCi TZ0h9yNmtzAaU2wLFUxOWz0f1DvWMtleax7022qaIyAolL6I5xiau/h46ZepbMePNQ LnBtZ/SNBiN1tAXBSykIYNzxu0Qw5jDU1tMa6miXR1zR1GvrLT1FobEL65ff5XNata fR/T3zgSll8aQ== Received: from [10.0.0.5] ([184.64.124.72]) by cmsmtp with ESMTP id JgS6p6gxyyAOeJgS6pg1Op; Sun, 22 Jan 2023 19:56:30 +0000 X-Authority-Analysis: v=2.4 cv=e5oV9Il/ c=1 sm=1 tr=0 ts=63cd94ee a=oHm12aVswOWz6TMtn9zYKg==:117 a=oHm12aVswOWz6TMtn9zYKg==:17 a=IkcTkHD0fZMA:10 a=yMhMjlubAAAA:8 a=AsdLOXd_1oolf49pKzIA:9 a=QEXdDO2ut3YA:10 Message-ID: Date: Sun, 22 Jan 2023 12:56:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Reply-To: cygwin@cygwin.com Subject: Re: [bug?] cygwin cannot mount smb shares beginning with underscore; "Invalid argument" Content-Language: en-CA To: cygwin@cygwin.com References: From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfC2QxXB/nYZz7nou/N6gCk1l6XWOHSX7rLpFYqkaT/XLduSzbr3Kz9Rhq5UZ43A6mdHtaUUTfq1+nPVx46HGFmxrg0ej4AeWU2IRyH1OUk7898/z4EB4 Od0GSGfKnbMKze4EmjJ2DoId2cdvWJoGIEJuPeqmNHjtE2lkCw8bRlvd97C3VaH3Bkhukjs/iOFyMQ== X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,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 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 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. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry