delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/09/09/10:34:53

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Sun, 9 Sep 2001 16:34:44 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: [RFA] A kinder, gentler check for /etc/{passwd,group} changes
Message-ID: <20010909163444.E937@cygbert.vinschen.de>
Reply-To: cygdev <cygwin-developers AT cygwin DOT com>
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <20010908225133 DOT A17336 AT redhat DOT com> <20010909152458 DOT D937 AT cygbert DOT vinschen DOT de> <1653247770 DOT 20010909175103 AT logos-m DOT ru>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <1653247770.20010909175103@logos-m.ru>; from deo@logos-m.ru on Sun, Sep 09, 2001 at 05:51:03PM +0400

On Sun, Sep 09, 2001 at 05:51:03PM +0400, egor duda wrote:
> Hi!
> 
> Sunday, 09 September, 2001 Corinna Vinschen vinschen AT redhat DOT com wrote:
> 
> CV> On Sat, Sep 08, 2001 at 10:51:33PM -0400, Christopher Faylor wrote:
> >> Here's what I did, based on the FindFirstFileChangeNotification ideas.
> >> 
> >> It seems to get performance back down to around 1.3.2 levels when
> >> combined with a couple of other minor changes.
> >> 
> >> Now that I see the patch, I realize that the etc_changed function
> >> probably belongs in miscfuncs.cc rather than in dcrt0.cc.
> 
> CV> IMO it belongs into the class init_cygheap.  I did it that way in
> CV> my version of that patch.
> 
> >> The only thing I don't know is if the etc_changed function actually
> >> does anything useful.  I don't have a useful test case for that but
> >> I thought that Corinna might.
> 
> CV> It works.  A simple test is ssh.  Start sshd, login using your
> CV> account.  Edit /etc/passwd to use tcsh as login shell instead of
> CV> bash.  Try another login.
> 
> CV> Testing the /etc/group stuff isn't that easy.  The current Cygwin
> CV> version doesn't support supplementary groups to add when the user
> CV> context changes due to a NTCreateToken() call.  I plan to add it
> CV> to 1.3.4 though.
> 
> >> I wonder if we could generalize the similar code in passwd.cc and grp.cc
> >> into some kind of class for 1.3.4...
> 
> CV> See my below patch. The whole class stuff is now in a common
> CV> header file `pwdgrp.h'.  There could be more common stuff later,
> CV> perhaps.
> 
> Should we apply this patch to 1.3.4, while removing /etc/ reread logic
> in 1.3.3? Btw, i think that /etc/passwd and /etc/group handling is yet
> another good candidate to move to "cygwin-server".

IMO it should go into 1.3.3.  The concerns were related to the
performance hit which is mostly eliminated now.  

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


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