Re: Getting hostname
-----BEGIN PGP SIGNED MESSAGE-----
On Sun, 4 May 2003, Bob Proulx wrote:
> 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.
Solaris (at least from 2.6) has getent but there may be some systems
without. (so it's not a GNU-only thing)
- -- arthur - firstname.lastname@example.org - http://tiefighter.et.tudelft.nl/~arthur --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
-----END PGP SIGNATURE-----