]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (#135508)
authorCaleb Xu <calebcenter@live.com>
Sat, 14 Jun 2025 16:04:16 +0000 (12:04 -0400)
committerGitHub <noreply@github.com>
Sat, 14 Jun 2025 16:04:16 +0000 (16:04 +0000)
Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst b/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst
new file mode 100644 (file)
index 0000000..c84663b
--- /dev/null
@@ -0,0 +1 @@
+Fix the detection of ``MAXLOGNAME`` in the ``configure.ac`` script.
diff --git a/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst b/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst
new file mode 100644 (file)
index 0000000..d3e81de
--- /dev/null
@@ -0,0 +1 @@
+Fix :func:`os.getlogin` failing for longer usernames on BSD-based platforms.
index fef9f2d7da935c1bed8f2c630cf63bd98eecfc78..6c4923e82a886d00a1fffd254532d6440abe1253 100755 (executable)
--- a/configure
+++ b/configure
@@ -23849,7 +23849,7 @@ fi
 
 
 
-ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include <sys/params.h>
+ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include <sys/param.h>
 " "$ac_c_undeclared_builtin_options" "CFLAGS"
 if test "x$ac_cv_have_decl_MAXLOGNAME" = xyes
 then :
index cc37a636c522ba824dc48ddd41227cbf7d2880de..4f935aacef1665ef7e12e1ec1730393d75958e5f 100644 (file)
@@ -5542,7 +5542,7 @@ AC_CHECK_DECL([MAXLOGNAME],
               [AC_DEFINE([HAVE_MAXLOGNAME], [1],
                          [Define if you have the 'MAXLOGNAME' constant.])],
               [],
-              [@%:@include <sys/params.h>])
+              [@%:@include <sys/param.h>])
 
 AC_CHECK_DECLS([UT_NAMESIZE],
               [AC_DEFINE([HAVE_UT_NAMESIZE], [1],