delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/23/13:38:05

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=uF2uDBrL6BITFNOQLmR1ngoJmp7BrOnxVfUBg6W/dJj
pfQ8YPrLvrl+BnQxHDiS2if3e/T9G1fYNFh46vSBtq28gctR0ylAL9eFxeyQEgXi
dxGAQmuqwJTKV73Ff487HBrfUCddOyJ+bY7GuRSFCKX+jDD/Gb7Y9XLuZHXfJMI0
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=6RTZKZegPLXciaXRdUAXHwhCSJk=; b=WlW2zihP7iy4gUoPT
C5HSuFMI80EnFvcsvN5vKIi7c4iBKB5UJ9JdXccINlDc88ttzNhtj9yCtwzvNRUg
fLi1jFooxwaY4SWAprrfXUvES5FGR5ASt7wkQQ72lrVzqH6wsopjUQc59RhDsTRT
HNg/4PRhaqGbz53j5r8LEv35wM=
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=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: mail2.intersystems.com
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Message-ID: <54EB7372.1010104@intersystems.com>
Date: Mon, 23 Feb 2015 13:37:38 -0500
From: Len Giambrone <Leonard DOT Giambrone AT intersystems DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: <cygwin AT cygwin DOT com>
Subject: Re: bug in csih?
References: <54E7C402 DOT 80306 AT intersystems DOT com> <20150223120522 DOT GI437 AT calimero DOT vinschen DOT de> <20150223144715 DOT GS437 AT calimero DOT vinschen DOT de> <54EB5208 DOT 8050009 AT intersystems DOT com> <54EB59E5 DOT 7050304 AT intersystems DOT com> <20150223173428 DOT GA26549 AT calimero DOT vinschen DOT de> <54EB698A DOT 7080700 AT intersystems DOT com>
In-Reply-To: <54EB698A.7080700@intersystems.com>
X-IsSubscribed: yes

My bad, csih_old_cygwin works as documented.
But there is a bug in csih_use_file_etc:

$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
#    This file is read once by the first process in a Cygwin process tree.
#    To pick up changes, restart all Cygwin processes.  For a description
#    see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
#
# Defaults:
# passwd:   files db
# group:    files db
# db_home:  cygwin desc
# db_shell: cygwin desc
# db_gecos: cygwin desc

This is not working correctly:

   if [ ${use_file} -ne 0 -a -f /etc/nsswitch.conf ]
   then
     grep -Eq "^${file}:" /etc/nsswitch.conf &&
       grep -Eq "^${file}:[^#]*\<db\>" /etc/nsswitch.conf ||
        use_file=0
   fi

$ grep -Eq "^${file}:" /etc/nsswitch.conf && grep -Eq 
"^${file}:[^#]*\<db\>" /etc/nsswitch.conf || echo foo
foo

I don't think that's what you want.  Both of the greps are false 
(returning 1) and use_file is being set to 0.



On 02/23/2015 12:55 PM, Len Giambrone wrote:
> If that is the case, then there is a bug in csih_old_cygwin:
>
> build AT wx64lg /usr/share/csih
> $ uname -a
> CYGWIN_NT-6.1 wx64lg 1.7.34(0.285/5/3) 2015-02-04 12:14 x86_64 Cygwin
>
> build AT wx64lg /usr/share/csih
> $ less cygwin-service-installation-helper.sh
>
> build AT wx64lg /usr/share/csih
> $ . cygwin-service-installation-helper.sh
>
> build AT wx64lg /usr/share/csih
> $ csih_old_cygwin
>
> build AT wx64lg /usr/share/csih
> $ echo $?
> 1
>
> My nsswitch.conf is the default:
>
> $ cat /etc/nsswitch.conf
> # /etc/nsswitch.conf
> #
> #    This file is read once by the first process in a Cygwin process 
> tree.
> #    To pick up changes, restart all Cygwin processes.  For a description
> #    see 
> https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
> #
> # Defaults:
> # passwd:   files db
> # group:    files db
> # db_home:  cygwin desc
> # db_shell: cygwin desc
> # db_gecos: cygwin desc
>
>
> On 02/23/2015 12:34 PM, Corinna Vinschen wrote:
>> On Feb 23 11:48, Len Giambrone wrote:
>>> csih_use_file_etc returns 0 on my system (as it should with no 
>>> passwd file,
>>> right?)
>> Uhm, no.  It should return 0 if you *use* the files (0 == true in the
>> shell), That should be only the case if you're running Cygwin 1.7.33
>> or if your nsswitch.conf file says so.  What's the content of your
>> /etc/nsswitch.conf?
>>
>>
>> Corinna
>>
>

-- 
-Len

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