From: David Seifert Date: Fri, 12 May 2023 12:06:01 +0000 (+0200) Subject: gss-serv.c: `MAXHOSTNAMELEN` -> `HOST_NAME_MAX` X-Git-Tag: V_9_4_P1~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a95fc5eed09a0238fb127b6c50e8498432b79dae;p=thirdparty%2Fopenssh-portable.git gss-serv.c: `MAXHOSTNAMELEN` -> `HOST_NAME_MAX` `MAXHOSTNAMELEN` is not defined in POSIX, which breaks on musl: https://pubs.opengroup.org/onlinepubs/9699919799/functions/gethostname.html Bug: https://bugs.gentoo.org/834044 --- diff --git a/gss-serv.c b/gss-serv.c index b5d4bb2d1..00e3d118b 100644 --- a/gss-serv.c +++ b/gss-serv.c @@ -105,7 +105,7 @@ ssh_gssapi_acquire_cred(Gssctxt *ctx) gss_create_empty_oid_set(&status, &oidset); gss_add_oid_set_member(&status, ctx->oid, &oidset); - if (gethostname(lname, MAXHOSTNAMELEN)) { + if (gethostname(lname, HOST_NAME_MAX)) { gss_release_oid_set(&status, &oidset); return (-1); }