X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 255073858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1674424931; bh=lnDIbDpk8k2t8JioFiArhZU71siBLq5jYGrc6H98Uwo=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=UJGYNv04mJX5ZOeWrvCEuXGNmY5Q5ebnYcONTrGnOIswIeodPwDmBY3MfvP/TmndX NP5tDlfs6QOeg9YSa0FAZ1nxC6InvDKk3KeogEfHUWpo+SGi1OW2PFpKBLuSGZf2pK q0toSzozVXb0E+LbzSxhSYH2ji5+yDPLmU6eay+w= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0255A3858C50 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: 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 AT cygwin DOT com Cc: Brian Inglis 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Jeremy Hetzler via Cygwin Reply-To: Jeremy Hetzler Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 30MM2Y01010040 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/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 > -- 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