On Sun, Aug 12, 2001 at 07:49:14PM +0200, Dios Del Tiempo wrote:
>  --- James Morrison <[EMAIL PROTECTED]> a ?crit : 
> > xgethostname() should be good to go around MAXHOSTNAMELENGTH.
> 
> I just red the page Development of the Distribution of Debian GNU/Hurd and it
> says sysconf() as a solution for the MAXHOSTNAMELEN issue; moreover, your
> Nessus' patch uses it. What is the right (and easy) way?

sysconf can still return -1.

> If xgethostname() is the better choice, where I can find an example of it's
> use? Thanks in advance.      =)

ftp://walfield.org/pub/people/neal/xgethostname.  It is in the public
domain and meant as a drop in replacement for gethostname.

Attachment: pgpJ0ylJ18SAI.pgp
Description: PGP signature

Reply via email to