delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/01/23/08:21:04

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: <Y86JdADL2IRYpY79@calimero.vinschen.de>
Mail-Followup-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>
<ec859fb8-6d32-49fc-d87a-4246d2ea92fc AT Shaw DOT ca>
MIME-Version: 1.0
In-Reply-To: <ec859fb8-6d32-49fc-d87a-4246d2ea92fc@Shaw.ca>
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
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: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
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>

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

- Raw text -


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