Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "Once-a-day" long delay before startup



On 2011-08-18 20:52:36 -0700, Bart Schaefer wrote:
> The getent call is used to read the system's groups database for the
> groups of your login user, so that the shell can then check whether
> other persons in that group might have write access to your fpath.
> (There is an assumption that getent is in /usr/bin, so if it's not
> there the check relies on the local /etc/group file.)
> 
> If you're in an environment (such as, say, a university or a large
> corporation) where the groups database is networked and may contain
> hundreds or even thousands of entries, that "getent" call can take a
> very long time.

That can be annoying. But I don't really understand. What if none
of the concerned directories are group-writable? I suppose that
getent should be useless. Why not calling it only when needed?

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author