This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Ken Brown <kbrown at cornell dot edu>, cygwin at cygwin dot com
- Date: Wed, 12 Feb 2014 21:03:59 +0400
- Subject: Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)
- Authentication-results: sourceware.org; auth=none
- References: <31347914-BB4F-4039-984B-731B6C72F903 at etr-usa dot com> <52F7AEC5 dot 5090205 at tiscali dot co dot uk> <8B7B5FE0-7413-4358-BA8A-E0B6E0B17653 at etr-usa dot com> <52F8B50E dot 7040307 at lysator dot liu dot se> <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>
- Reply-to: Andrey Repin <cygwin at cygwin dot com>
Greetings, Ken Brown!
> What about the following compromise: If /etc/passwd exists, then
> getpwent behaves as it does currently. Otherwise, it returns a handful
> of entries, or possibly just the current user. This gives users a
> choice. If tab-completion in this situation is important to them, they
> can keep their /etc/passwd file.
Makes sense. You get your current user name substituted in all cases, if you
want more - you fill in the list of the names you want to see.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 12.02.2014, <21:03>
Sorry for my terrible english...
--
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