On Tue, Sep 23, 2008 at 7:14 PM, Hugh N. Greenberg <[EMAIL PROTECTED]> wrote:
>
> Ron,
>
> I was under the impression that getpwent and friends are in libc and once
> called, dlopen libnss libraries according to what is in
> /etc/nsswitch.conf.  An strace of xget seems to show this.  I never see
> the libnss libraries dynamically linked to anything.  I'm sorry to
> disagree with you, but I don't think a compile time option is necessary in
> order to prevent the libnss libraries from being used.

you're right, I messed up. What was I thinking?

It is also the case that if you ever call, e.g. gethostbyname, and
there are *no* libnss* files to be found, the libary cleverly explodes
with a segv. Evidently it doesn't like it that a dlopen can fail. So
we always ship minimal onesis initrd's with libnss_files at least.

ron

Reply via email to