Skip to content

Commit 91d0f08

Browse files
committed
AIX usersec.h is missing the passwdexpiredx() prototype.
1 parent e098595 commit 91d0f08

File tree

5 files changed

+29
-2
lines changed

5 files changed

+29
-2
lines changed

aclocal.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# generated automatically by aclocal 1.17 -*- Autoconf -*-
1+
# generated automatically by aclocal 1.18.1 -*- Autoconf -*-
22

3-
# Copyright (C) 1996-2024 Free Software Foundation, Inc.
3+
# Copyright (C) 1996-2025 Free Software Foundation, Inc.
44

55
# This file is free software; the Free Software Foundation
66
# gives unlimited permission to copy and/or distribute it,

config.h.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@
168168
*/
169169
#undef HAVE_DECL_NSIG
170170

171+
/* Define to 1 if you have the declaration of 'passwdexpiredx', and to 0 if
172+
you don't. */
173+
#undef HAVE_DECL_PASSWDEXPIREDX
174+
171175
/* Define to 1 if you have the declaration of 'PATH_MAX', and to 0 if you
172176
don't. */
173177
#undef HAVE_DECL_PATH_MAX

configure

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18697,6 +18697,20 @@ esac
1869718697
fi
1869818698
printf "%s\n" "#define HAVE_DECL_SETAUTHDB $ac_have_decl" >>confdefs.h
1869918699

18700+
ac_fn_check_decl "$LINENO" "passwdexpiredx" "ac_cv_have_decl_passwdexpiredx" "
18701+
#include <sys/types.h>
18702+
#include <usersec.h>
18703+
18704+
" "$ac_c_undeclared_builtin_options" "CFLAGS"
18705+
if test "x$ac_cv_have_decl_passwdexpiredx" = xyes
18706+
then :
18707+
ac_have_decl=1
18708+
else case e in #(
18709+
e) ac_have_decl=0 ;;
18710+
esac
18711+
fi
18712+
printf "%s\n" "#define HAVE_DECL_PASSWDEXPIREDX $ac_have_decl" >>confdefs.h
18713+
1870018714
;;
1870118715
*-*-hiuxmpp*)
1870218716
# HI-UX/MPP is based on OSF/1

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,6 +1878,10 @@ case "$host" in
18781878
])
18791879
AC_CHECK_DECLS([setauthdb], [], [], [
18801880
#include <sys/types.h>
1881+
#include <usersec.h>
1882+
])
1883+
AC_CHECK_DECLS([passwdexpiredx], [], [], [
1884+
#include <sys/types.h>
18811885
#include <usersec.h>
18821886
])
18831887
;;

plugins/sudoers/auth/aix_auth.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
* http://publib16.boulder.ibm.com/doc_link/en_US/a_doc_lib/libs/basetrf1/authenticate.htm
4545
*/
4646

47+
/* AIX usersec.h is missing the passwdexpiredx() prototype. */
48+
#if defined(HAVE_DECL_PASSWDEXPIREDX) && !HAVE_DECL_PASSWDEXPIREDX
49+
int passwdexpiredx(char *, char **, void **);
50+
#endif
51+
4752
#ifdef HAVE_PAM
4853
# define AIX_AUTH_UNKNOWN 0
4954
# define AIX_AUTH_STD 1

0 commit comments

Comments
 (0)