delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/01/22/14:57:34

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75F853858409
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1674417411;
bh=/YFilsSOi8Y9KrwQE6811OeqVMcQMyKlhEOA2+NaLEc=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=bquYc/eSclmqmOoXNRy6+6WQ3RTcDh1yJFJ3rMITGm7IGjRYS+TS31wOGAmizb+jN
+XVEYd6i3CMZvnnn/kj/uKdyZJvnd4F6Vc+lAya6rsNvowewbi3S8gTnx76SA/Oepw
mEYoNig2+7IGG1lC/di4APkthS4KTzjhGdhOimD4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2301E3858D32
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: <ec859fb8-6d32-49fc-d87a-4246d2ea92fc@Shaw.ca>
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
Subject: Re: [bug?] cygwin cannot mount smb shares beginning with underscore;
"Invalid argument"
To: cygwin AT cygwin DOT com
References: <CAOh4nm=ODyjhx37j2L-9NMq0BRk+B+xjWNHyCdZ7hbMwrg=0aw AT mail DOT gmail DOT com>
<Y82MqzKDg1L/wjHE AT calimero DOT vinschen DOT de>
Organization: Inglis
In-Reply-To: <Y82MqzKDg1L/wjHE@calimero.vinschen.de>
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
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 30MJvGFN027077

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

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

- Raw text -


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