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

Re: Getting hostname



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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 - arthur@tiefighter.et.tudelft.nl - http://tiefighter.et.tudelft.nl/~arthur --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE+tl4XVYan35+NCKcRAlfzAJ43jRre93TDILbf8Dv278J/09TGTwCeMujI
YHBwzV1PIZNysimqh6RzA+Y=
=rYqW
-----END PGP SIGNATURE-----



Reply to: