From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by sourceware.org (Postfix) with ESMTPS id 0255A3858C50 for ; Sun, 22 Jan 2023 22:01:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0255A3858C50 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x22c.google.com with SMTP id y19so11325642ljq.7 for ; Sun, 22 Jan 2023 14:01:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dNJKQu2im2Qi8uvQAYIvn5cfa6H99vnKPD3OaxXSF84=; b=SFECd1m2LIfFi+eQqfUInRHsHrnPEGMiXjkJurkBiDGWAV/BGm/Usp30oLwybbNrKe cdIKn7jf1+W2LmEbKIowNruHdZI+6amvERKIvau2U5gHEUEGuDGuqWdH7q4NAdW7xt36 Dyelc18YBw03BLcBscWlIK5b7S7UK15WM+8BAM44Idwhaxn9zPJUJScqKxMVJeX0PGrz e5drDOFd5wWN68MOvxIpTpwWcHmgrOVoNnATygipmdNiuRWq1MysJ2FpS2PN3YoTS4m3 2rR0mStVAYzpO5I42uceytzezdwTRgyaN0GmgUOD2UYRYUbiLhlWb0PrXjLFFwDWRMry f1Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dNJKQu2im2Qi8uvQAYIvn5cfa6H99vnKPD3OaxXSF84=; b=XPFKM0McAfpkcjytJ9EBd1kmr7Zcdoc4fjFnXZbqLihOfys77+wmoRVPhuen+ikZPM oT2+qcRosTlrZyrdBksi0/MUPbFoyOOoACb3j0fZbFNfnyWq+P3vzBFfw6tUolywKu+x KgMil0Uy6GxMsbhhXYmPEwGFiOylF3EM3pH7aMyKzAGTzcOiIObnHOXv83daj9aHWG0V hvqHv4qEO8WSuPexL+vm0Cu49O1DjldzbRRMff2uQzaha3vadLpgGw84PNuTgVbSgcb0 8F8J9gL6/N3HKwqwDxdACrSGAmtZscsz2h+MUkgP2DVWoIhR6a54x5AmIssc28OWuCyS rKRw== X-Gm-Message-State: AFqh2krjkqXFpnA+rCZnGVCuvW2U3vOSGeyoSkdzp9PJKpRCUzCW3xpY m/B4Oz+2OVSjCESj6+3k9PJJLp1dYRXkOyal3fbnbUn2yN0= X-Google-Smtp-Source: AMrXdXsktWIDEMMTxDsbl7YRdqBcmGXSbQ9/lt3A/dwtCPnb0+qJJlXDW95rSyf+uizb+RC55p+bJ58zGaBz5jgKlkw= X-Received: by 2002:a2e:7816:0:b0:287:e862:b788 with SMTP id t22-20020a2e7816000000b00287e862b788mr1098394ljc.440.1674424911485; Sun, 22 Jan 2023 14:01:51 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jeremy Hetzler Date: Sun, 22 Jan 2023 17:01:38 -0500 Message-ID: Subject: Re: [bug?] cygwin cannot mount smb shares beginning with underscore; "Invalid argument" To: cygwin@cygwin.com Cc: Brian Inglis Content-Type: multipart/alternative; boundary="0000000000000d630305f2e16e02" X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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: --0000000000000d630305f2e16e02 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Brian and Corinna. Jeremy On Sun, Jan 22, 2023, 14:57 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/na= ming-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 =C3=A0 ajouter not when there is no= more > to add > mais lorsqu'il n'y a plus rien =C3=A0 retirer but when there is no= more > to cut > -- Antoine de Saint-Exup=C3=A9ry > > -- > 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 > --0000000000000d630305f2e16e02--