delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/24/10:12:47

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:mime-version:message-id:from:to:subject
:content-type:date; q=dns; s=default; b=tAQsIYpvWIch6nF3tpWc5orO
Oh34VgwHkbNDnCVTCqbgmHobDYkmrhb8tKvh7lpO6f7jmEk2JlJdTMYjD/QWaVxp
f/Nkca30ZgGMeNqlMU/B1wpPVg7gvPFTfLRArDX/4TCZm5gJLQsr+swqv1BULQSB
5jlhYFD5hZQgalRo/x0=
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:mime-version:message-id:from:to:subject
:content-type:date; s=default; bh=SFAQZM+9MuF6DC1+FDxo20NA72Y=; b=
T5J8LsDaCkNWpOuaVB4JKBCwZNyQgrNNfarjlXvsGq7i5ocXd4ZlI9jFTpXR6FMk
1Mj3gbj/JGM2JteocvDHMF2K9yh0BLgAweeO/MCYgn+HVEmg07ILs1rEkxgf+3eM
fFx78O6aYjUGrm0+fmzoWzmCHBPCV+pPP/mRGIShYXM=
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=3.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,XPRIO autolearn=no version=3.3.2 spammy=continued, getent, Moreover, HX-Provags-ID:V03
X-HELO: mout.gmx.com
MIME-Version: 1.0
Message-ID: <trinity-e5b0769d-61d9-4ca8-9820-6997056dc6a2-1458828746171@3capp-mailcom-lxa02>
From: "Unknown Sender" <artanis AT linuxmail DOT org>
To: cygwin AT cygwin DOT com
Subject: Possible bug: ssh-host-config - getent when computer name is "-" (dash)
Date: Thu, 24 Mar 2016 15:12:26 +0100
Sensitivity: Normal
X-UI-Out-Filterresults: notjunk:1;V01:K0:qB0DJ/hCQPg=:o4gEXvvhhb2eL/GM8HMwoW CXHcbgvuENK20SdlvHT0RGiLeW39hsdsK0udGEKoT6ciqU/1zIRxlVfBIXDKLXQeuYaoiXDEY VJMS/4fUjm3Tp8VaWDvL18VHQXIkIq4Kxfu+tpjeNW0zEIDcL64j7x8loSQh84knVInGP2GiG CLx/pgIORB85YZv44kHCLszmcBMmswKivCphFAVR6uHIGp4fpb1IC9ZtXTm4cnFPvJ7BpHSzK cHP+RuFHjjOBuZPqVqunCdYdP5/0CMSDzUPYTh36U8A2/CrgzfXCBiW7k9GEiAaxoWFcEbKLK dQwcljEVnAezxOo8BaWK59YH4wTZ+1xlQrTZU9IrgLOFJcLXVVveX4GHFpl9ba06FgrDJT7jg Hj5gxjXKhR4m+8zX76j9xcv7Q5BWYrtfSZboVUZUbFn4bbIsyoOuDoyGVbyfGQCU0yEFyiQZQ BXfEZQ+0rg==

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

- Raw text -


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