This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH] Add new getgrgid2(), getgrnam2() interfaces to glibc


On Mon, Oct 18, 2010 at 20:39, Roland McGrath <roland@redhat.com> wrote:
> Just the simple getgidbyname seems fine enough to me too. ÂThere is no real
> reason to have a constraint that the user-visible libc API must look like
> the internal NSS module API for the backend hooks.
>
> All that said, I really don't have any strong opinions about this at all.

I actually do.  If the group data structure is not filled correctly it
should not at all be used for this type of interaction.  If the GID is
the only piece of information which the caller is interested these
getgidbyname() etc interfaces are the only sane solution.

Before doing any of this I want to see more proof.  Adding this type
of interface is creating major headaches for backward compatibility.
This has to be justified.  I want to see numbers for affected
programs: which and how much they are affected, without and with nscd
running.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]