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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=lslpz6y8vaQxlw7u /v/NErZhqTAMRo7x9IH5CGOi/1hSMzCfDRvlwzyRFJ7U+GzlZvVYFVT5sJACjvyG a7A2q5qyHUJEWMJWssQqESlvRA0M6lK3ucZfQBFt114H8iC85Pr1YpiBT3yAt+WD 0/9C9YxFmpZnKgNN4U8/IzcAhA0= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=ZiEBpYuEIN8vNbjwynmsYK dekDY=; b=j9kR9wboljG7tycF0M9if3HUEg1IifxxoBveC5eUghYzN1x9cexgMh J67TUplxjn49VPf/kRaj2OLF8XeFeJTDxu3+8lk7l0ejyHx9VYO8/HA6KNLeBjwv jroyP6raUpaTis4sAQHThdP3/3EzaznhH409XOBY6k/ZOiLogvQhk= 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=4.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*r:4.80.1, H*F:D*yandex.ru X-HELO: smtp.ht-systems.ru Date: Fri, 25 Mar 2016 02:16:34 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1023719672.20160325021634@yandex.ru> To: cyg Simple , cygwin AT cygwin DOT com Subject: Re: Possible bug: ssh-host-config - getent when computer name is "-" (dash) In-Reply-To: <56F46003.2060704@gmail.com> References: <56F40B07 DOT 2020400 AT arcor DOT de> <56F46003 DOT 2060704 AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, cyg Simple! > 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. http://tools.ietf.org/html/rfc1034#section-3.5