Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: smtpd: spell HOST_NAME_MAX differently (for -portable)
To:
"Todd C. Miller" <millert@openbsd.org>
Cc:
Florian Obser <florian@openbsd.org>, Omar Polo <op@omarpolo.com>, tech@openbsd.org, gilles@poolp.org
Date:
Tue, 20 Aug 2024 09:26:11 -0600

Download raw body.

Thread
  • Todd C. Miller:

    smtpd: spell HOST_NAME_MAX differently (for -portable)

    • Theo de Raadt:

      smtpd: spell HOST_NAME_MAX differently (for -portable)

  • Todd C. Miller <millert@openbsd.org> wrote:
    
    > On Tue, 20 Aug 2024 14:49:06 +0200, Florian Obser wrote:
    > 
    > > I think they should fix their libc.
    > >
    > > posix has this to say:
    > >
    > > {HOST_NAME_MAX}
    > >     Maximum length of a host name (not including the terminating null) as ret
    > > urned from the gethostname() function.
    > >     Minimum Acceptable Value: {_POSIX_HOST_NAME_MAX}
    > >
    > > {_POSIX_HOST_NAME_MAX}
    > >     Maximum length of a host name (not including the terminating null) as ret
    > > urned from the gethostname() function.
    > >     Value: 255
    > 
    > Wow, even sysconf(_SC_HOST_NAME_MAX) returns 64 on Linux with glibc.
    > What a time to be alive!
    
    We unified and increased these a decade ago.  We fixed them all, and
    at the time we knew other people were going to ignore the problem and
    get hurt.  It always happens....
    
    
    
  • Todd C. Miller:

    smtpd: spell HOST_NAME_MAX differently (for -portable)