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

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DC3F3858408
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1674415294;
bh=s12yC65sky1bBNasGhJe2KuCXdsxPIHfHe4hMK3K+zE=;
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=blvdzo/0S5GdMxS232OzT/bz11v/2+snA+O/Yf3fwXxAvEjyywSyK1vhNp1AKHZzg
B3/4t/KbAriS961qjc4wIRUNVJWQ3tQNYu23ieTGlEqzv3NtxhbJohmHu7XNdyouZf
VV+z45V8nkYoIstYf9BjNcUkw2JKU5XDyI0t64+k=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
Date: Sun, 22 Jan 2023 20:21:15 +0100
To: cygwin AT cygwin DOT com
Subject: Re: [bug?] cygwin cannot mount smb shares beginning with underscore;
"Invalid argument"
Message-ID: <Y82MqzKDg1L/wjHE@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com, Jeremy Hetzler <jeremyhetzler AT gmail DOT com>
References: <CAOh4nm=ODyjhx37j2L-9NMq0BRk+B+xjWNHyCdZ7hbMwrg=0aw AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAOh4nm=ODyjhx37j2L-9NMq0BRk+B+xjWNHyCdZ7hbMwrg=0aw@mail.gmail.com>
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
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>,
Jeremy Hetzler <jeremyhetzler AT gmail 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 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

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