X-Recipient: archive-cygwin@delorie.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:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=oRgKnKVrFXRDcK9IURlBPlOBtHYOmFONsuslHOjuzJW4i9nRk3beq
	p6IKU+xtiwfhm1kuM4SIFATZtZC32n4GW5UbsPkgYdlO6YZVymZVlixEBXlCxypy
	vyMyfQoZ/frvvfJwD4Y2wT4C3/bam3/qVMCE8mQ3ioCcyis9XahzP8=
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:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=CxNmvvYek1fFRusvTsFKIwhjv50=; b=tbc79kVvHCbN24IXKd/COGnqcaHu
	2Lc5ImTYcC973kmq0yh3VCPW4F2RvQijBfqZUcCLe+ZrIOYzLiyiHNZNaOJ2GgFp
	CjGPJDR8IJaFsR7GS5GYaMzrcPnwk0UHNKQm2Mr1ptUrGTk0aO0s9vzIjhwRxqPq
	/P1vHuC5l+ULO9Q=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 13 Feb 2014 20:56:48 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: get rid of getpwent?
Message-ID: <20140213195648.GR2246@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4510121021.20140211062515@mtu-net.ru> <52FAB14C.8060800@tiscali.co.uk> <52FABAF5.2060701@etr-usa.com> <52FAD730.9090507@redhat.com> <20140212090804.GM2821@calimero.vinschen.de> <52FB9E51.7030607@cornell.edu> <20140212195931.GA2246@calimero.vinschen.de> <20140212213729.GA5589@ednor.casa.cgf.cx> <20140213100025.GB24159@calimero.vinschen.de> <87eh369a24.fsf@Rainer.invalid>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="Mh8CTEa8Ax54aLHp"
Content-Disposition: inline
In-Reply-To: <87eh369a24.fsf@Rainer.invalid>
User-Agent: Mutt/1.5.21 (2010-09-15)

--Mh8CTEa8Ax54aLHp
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb 13 18:50, Achim Gratz wrote:
> Corinna Vinschen writes:
> > Caching is wonderful for the usual requests for single entries from the
> > DB, and for this we have already two caches, the LSA cache and Cygwin's
> > own cache.  But caching doesn't help at all when enumerating.
>=20
> Would it be possible to only look (for user name completion purposes)=C2=
=A0at
> the current user plus whatever is in %SystemDrive%\Users plus whatever
> is found in /etc/passwd?  That way no beans are spilled about domain
> users that couldn't be gleaned from the local file system and in almost
> all cases that's the list one would want to complete from anyway.

Oh, hmm.  Well, it might be possible, but somehow I'm not excited by the
idea.  While it looks like getpwent is mostly used for this purpose, you
don't really know it.  I think I'll try to implement it fully and then
let the admin decide what to allow.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--Mh8CTEa8Ax54aLHp
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJS/SN/AAoJEPU2Bp2uRE+gKCUP/2qQcd38aEhzcm7QwGLy6zmi
kgpnsvG+j8OFlsz5+UFW59kIQSF0JU7UuX8zhTYYFNE+SgVlfvXnqX5OaND4Hbhw
uY/VoswNhyQUAgslGATlYEZlZvJzodUzyrERzBH0bMIAXsA1QrzX+XACQnA9PcV5
Y9iDHl1qQP5XdYTmvQMsTKgDIViPqstqHNico8iCKVLk5ZKjKmCQpL8+TFymsWQz
S1neZunPJUt6fPIK+jtUyp22izwuuFQ5Wn7aKBn56rFL8utrGXzAOXb+h0ySDFfF
YuYgPVZQLcl0ZLWWhGs+9//+rym/EgWSSkMS5MDDeB5iuGlWg2dii4W7NnjO9c4W
BPEjwKyyFrSLpOW5O65/rnVxas2zcVpQW9w2sMzs/1gPluP7ANF5Egum7yx1PlRx
kjsdxqX27bBseTPvOMYWnADpmLosx8CcbYWGh42R3wYLaSFx5q+BHtdc7k7V4FJw
vUPVXFCA9AJ4NIdp2KCcL9FGpvwx5HTRNxON6YzDE0/fl4oB7Q55N3bIFAqglbga
gVZrHuN4dVKfudwLHSlg867U1BsTx8BQoMHlQ0xH+rRavYYN0erVWGq2i9qazbMl
QfoC0EieJ2he0ctmhaL1jtF1ecB3NiPELSbVdrUXoOOKsJ/4qII8LmXDQWsXBlMM
gJcGyo6C0BfmfYev5nYN
=F5+p
-----END PGP SIGNATURE-----

--Mh8CTEa8Ax54aLHp--
