X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=E1E2vvJbcDtAoNyT CiXKGZ9n/N2+i6BntFCjLQoLHBQ7uu6YVRuW0KbaahiYX4l8pxSwl2gIBYyeDEYt MdglE7gEja0oSOrWEavi+eGbGKOcLUU526CdpJO3K6154+sH04+1Yb1fli7xPcRy Tycww0h8TCmxtYmoA6p+EPMz9sE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=FivpJgeKBG69ik1pv/DzxJ 3iY/I=; b=dNBhs448Hqbb+UcmpcqU511tGH00SRUP+XYcfg31vs442IOVNXk5tH tND/0ilbe3PpGCGN5EN7JWId2fDe0esrPV5Fv6RWzqkvLBV07JGgvp9nQX4wdfkT nZRhRZpenCTIY0YmOdI6CJm6VYgkxsoH89QUk6YD9HyN9BD7kWrxQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=cyg, mandate, protocols, digits X-HELO: mail-io0-f179.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=nGA1L+cQOxxsC9FvOQJKJrwgQ6htL3B4EiNCIVNZzSc=; b=hwMiGNJmSNDwEm/uvx9WAKE3DkqoPyA2R3Ohq7bv8FfnBOhIhhVAyUp3blRIMoOBWy ghPU65EG9tfOAP27QcC8C7EaW8nDrcYBZM8wUIzLGFJc2N2i+hClMvtuk87WupHP2Djm Cu+138tr5nyznrbDGUc2QAjn+v0Q/erkjHGUXYHll5dI/2oChGvebc6WAB70vTEMSAFR 1PjoUMwvAvMlhWaxqErWP5T5qdeF0vd31cslKEMfcb52HQmZCQQax+KxoILR/qE/rE0s YyiOslFVBuNGVIO9n6AQPIUcisUHwGNgTVXT7WoEZn6bNM+1gg1GSmm2xQJddNPakN3E enAA== X-Gm-Message-State: AD7BkJJUDis/TC7FsFwHUMUwn0j1Os2s4eNAVgXZgThkxvtbozYZFsPwzFp/LW2A4uvPUw== X-Received: by 10.107.137.152 with SMTP id t24mr12009955ioi.147.1458855916733; Thu, 24 Mar 2016 14:45:16 -0700 (PDT) Subject: Re: Possible bug: ssh-host-config - getent when computer name is "-" (dash) To: cygwin AT cygwin DOT com References: <56F40B07 DOT 2020400 AT arcor DOT de> From: cyg Simple Message-ID: <56F46003.2060704@gmail.com> Date: Thu, 24 Mar 2016 17:45:39 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <56F40B07.2020400@arcor.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 3/24/2016 11:43 AM, Dirk Fassbender wrote: > Am 24.03.2016 um 15:12 schrieb Unknown Sender: >> I noticed this bug for the first time today on a computer that has the >> computer name "-" (dash). >> >> During ssh-host-config: >> *** Query: Do you want to use a different name? (yes/no) no >> /usr/bin/getent: invalid option -- '+' >> Try `getent --help' or `getent --usage' for more information. >> *** Query: Create new privileged user account '-\cyg_server' (Cygwin >> name: 'cyg_server')? (yes/no) yes >> >> I suspect this has to do with the computer name because getent & >> ssh-host-config have never failed this way for me before. Moreover >> getent seems to be able to query the computer name, and the error >> message makes me think that it may be connected. >> >> I included the 2nd query just to show that it continued the process >> after the error occurred. I'm not sure if this error is going to cause >> problems down the line. >> >> Will I be encountering tons of problems with a computer name of "-"? >> It seems to only be a problem right here & right now. >> > Hello, > > the computer name "-" (dash) is illegal in the internet. Uh, that isn't true. > So many network utilities will have problems with this name. > This might be true but doesn't invalidate the use of the hyphen. > See > https://en.wikipedia.org/wiki/Hostname > for a start about host name definitions. > From this reference: "The Internet standards (Requests for Comments) for protocols mandate that component hostname labels may contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', and the hyphen ('-'). The original specification of hostnames in RFC 952, mandated that labels could not start with a digit or with a hyphen, and must not end with a hyphen." Note that hyphen (a.k.a. dash) is permitted. -- cyg Simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple