[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting hostname

Steve Langasek wrote:
> Bob Proulx wrote:
> > Just noting that 'getent' is GNU libc only and does not exist on other
> > systems.  It is not portable.
> Then the other systems are broken, because getent is *the* only
> reliable way to do NSS queries from a script.  Every Debian port needs
> to provide a 'getent passwd' implementation, glibc-based or not.

I said *other* systems.  As in non-Debian systems.  In this case other
than GNU based systems which are not based upon glibc.

In a Debian package post install script 'getent' should be fine.


Attachment: pgpmOUmL6G8DW.pgp
Description: PGP signature

Reply to: