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

Bug#314350: libc6: sysconf(_SC_HOST_NAME_MAX) always returns -1



Package: libc6
Version: 2.3.2.ds1-22
Severity: important

sysconf(_SC_HOST_NAME_MAX) always returns -1, rather than the maximum
host name length (as documented in sysconf(3)).  This also been
reported elsewhere:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=130733

It's not clear from the report exactly which version of glibc fixes
this, but it's still broken in Debian glibc.

HOST_NAME_MAX is also undefined, meaning you can't determine the
value at compile-time either.


Regards,
Roger


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-rc6
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information



Reply to: