This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: get rid of getpwent?
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Achim Gratz <Stromeko at nexgo dot de>, cygwin at cygwin dot com
- Date: Thu, 13 Feb 2014 22:38:14 +0400
- Subject: Re: get rid of getpwent?
- Authentication-results: sourceware.org; auth=none
- References: <52F92D58 dot 9030408 at etr-usa dot com> <52F95D1D dot 4050108 at tiscali dot co dot uk> <4510121021 dot 20140211062515 at mtu-net dot ru> <52FAB14C dot 8060800 at tiscali dot co dot uk> <52FABAF5 dot 2060701 at etr-usa dot com> <52FAD730 dot 9090507 at redhat dot com> <20140212090804 dot GM2821 at calimero dot vinschen dot de> <52FB9E51 dot 7030607 at cornell dot edu> <20140212195931 dot GA2246 at calimero dot vinschen dot de> <20140212213729 dot GA5589 at ednor dot casa dot cgf dot cx> <20140213100025 dot GB24159 at calimero dot vinschen dot de> <87eh369a24 dot fsf at Rainer dot invalid>
- Reply-to: Andrey Repin <cygwin at cygwin dot com>
Greetings, Achim Gratz!
> 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.
> Would it be possible to only look (for user name completion purposes) at
> the current user plus whatever is in %SystemDrive%\Users
Assuming, the mentioned directory at all exists... And contain relevant
data... And the data is full... and not redundant... Too many assumptions to
work from.
> 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.
You have to know, how easy it is to confuse a user, who expect a file system
being solid source of security-related information.
Starting from profiles of nonexistent accounts, and down to relocated profiles
and complete absence of the directory in question at all.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 13.02.2014, <22:34>
Sorry for my terrible english...