delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/24/11:43:40

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=IsoL3sowfxI7hVMk
gTbTZXSZveUZk/cbPokESebEI/0eVTllHfZdPVTW4pEa6342nli4R/9xuN123F4J
vJjfBT5H8Fd0mBKoIirIHZEFVMHbH7hG9jAvyTjNMEvf7g+FjvCbkr+AyW/2PXHM
/qKJEWvC1BZXOWBZhAa8zTVrQKU=
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=GkMB/K2dmdrnV1jKtFjzFg
WyDqk=; b=mZ74ndYK2PuDp0Q2/9uMBcYQbYqPRxElNzDUTCWJEoxcOH1eRGf9NJ
HXlDHU17TbnnntiL26JabLIAytv2Jww7P4aLMRllVZ+Sn38qg161Q4NG11gKGqEG
+1g41P/s9zYXDjD6pXQsq/b+t86N9LhGrLFLrDTv+XewFJKKopAzQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=24.03.2016, 24032016, UD:arcor.de, continued
X-HELO: mail-in-09.arcor-online.net
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-09.arcor-online.net 3qW9gZ4bD8z9Hhg
Subject: Re: Possible bug: ssh-host-config - getent when computer name is "-" (dash)
To: cygwin AT cygwin DOT com
References: <trinity-e5b0769d-61d9-4ca8-9820-6997056dc6a2-1458828746171 AT 3capp-mailcom-lxa02>
From: Dirk Fassbender <dirk DOT fassbender AT arcor DOT de>
Message-ID: <56F40B07.2020400@arcor.de>
Date: Thu, 24 Mar 2016 16:43:03 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0
MIME-Version: 1.0
In-Reply-To: <trinity-e5b0769d-61d9-4ca8-9820-6997056dc6a2-1458828746171@3capp-mailcom-lxa02>

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.
>
> --
> 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
>
>
Hello,

the computer name "-" (dash) is illegal in the internet.
So many network utilities will have problems with this name.

See
https://en.wikipedia.org/wiki/Hostname
for a start about host name definitions.

Regards
Dirk Fassbender

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019