From 6db0f946028a72a4551c2967cbfe9c1e3a82daa8 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 20 Jul 2005 09:46:14 +0000 Subject: Relevant BUGIDs: none Purpose of commit: cleanup Commit summary: --------------- Rename _pam_aconf.h to config.h. --- CHANGELOG | 1 + Makefile | 18 +- _pam_aconf.h.in | 277 ----------------------------- config.h.in | 277 +++++++++++++++++++++++++++++ configure | 4 +- configure.in | 2 +- examples/xsh.c | 2 +- libpam/pam_private.h | 2 +- libpam_misc/misc_conv.c | 2 +- modules/pam_access/pam_access.c | 2 +- modules/pam_cracklib/pam_cracklib.c | 2 +- modules/pam_env/pam_env.c | 2 +- modules/pam_filter/pam_filter.c | 2 +- modules/pam_filter/upperLOWER/upperLOWER.c | 2 +- modules/pam_ftp/pam_ftp.c | 2 +- modules/pam_group/pam_group.c | 2 + modules/pam_issue/pam_issue.c | 2 + modules/pam_lastlog/pam_lastlog.c | 2 +- modules/pam_limits/pam_limits.c | 2 +- modules/pam_listfile/pam_listfile.c | 2 +- modules/pam_localuser/pam_localuser.c | 2 +- modules/pam_mail/pam_mail.c | 2 +- modules/pam_mkhomedir/pam_mkhomedir.c | 5 +- modules/pam_motd/pam_motd.c | 2 +- modules/pam_pwdb/pam_pwdb.c | 2 +- modules/pam_pwdb/pwdb_chkpwd.c | 2 +- modules/pam_rhosts/pam_rhosts_auth.c | 2 +- modules/pam_selinux/pam_selinux.c | 2 +- modules/pam_stress/pam_stress.c | 2 +- modules/pam_tally/pam_tally.c | 2 +- modules/pam_time/pam_time.c | 2 +- modules/pam_umask/pam_umask.c | 2 +- modules/pam_unix/pam_unix_acct.c | 2 +- modules/pam_unix/pam_unix_auth.c | 2 +- modules/pam_unix/pam_unix_passwd.c | 2 +- modules/pam_unix/pam_unix_sess.c | 2 +- modules/pam_unix/unix_chkpwd.c | 2 +- modules/pam_unix/yppasswd_xdr.c | 2 +- modules/pam_userdb/pam_userdb.c | 2 +- modules/pam_xauth/pam_xauth.c | 2 +- modules/pammodutil/pammodutil.h | 3 +- 41 files changed, 331 insertions(+), 322 deletions(-) delete mode 100644 _pam_aconf.h.in create mode 100644 config.h.in diff --git a/CHANGELOG b/CHANGELOG index 3e80b5b2..f76af2eb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -69,6 +69,7 @@ BerliOS Bugs are marked with (BerliOS #XXXX). * configure.in: Fix AC_DEFINE usage for autoheader (kukuk) * configure.in/_pam_aconf.h.in: Remove feature.h inclusion (kukuk) * defs: Remove obsolete directory/content (kukuk) +* Rename _pam_aconf.h.in to config.h (kukuk) 0.80: Wed Jul 13 13:23:20 CEST 2005 * pam_tally: test for NULL data before dereferencing them (t8m) diff --git a/Makefile b/Makefile index 1867ad3e..ad33c122 100644 --- a/Makefile +++ b/Makefile @@ -18,12 +18,12 @@ THINGSTOMAKE = libpam libpamc libpam_misc modules doc examples all: $(THINGSTOMAKE) # Let's get a dynamic libpam.so first - bootstrap-libpam: _pam_aconf.h prep + bootstrap-libpam: config.h prep $(MAKE) -C libpam bootstrap-libpam prep: rm -f security - ln -sf . security +# ln -sf . security clean: if [ ! -f Make.Rules ]; then touch Make.Rules ; fi @@ -31,19 +31,19 @@ clean: rm -f security *~ *.orig *.rej #*# distclean: clean - rm -f Make.Rules _pam_aconf.h + rm -f Make.Rules config.h rm -f config.status config.cache config.log core rm -rf autom4te.cache/ maintainer-clean: distclean @echo files should be ok for packaging now. -# NB _pam_aconf.h.in changes will remake this too -Make.Rules: configure Make.Rules.in _pam_aconf.h.in +# NB config.h.in changes will remake this too +Make.Rules: configure Make.Rules.in config.h.in ./config.status --recheck ./config.status -_pam_aconf.h: Make.Rules +config.h: Make.Rules configure: configure.in @echo @@ -53,14 +53,14 @@ configure: configure.in @rm -f configure @exit 1 -$(THINGSTOMAKE): _pam_aconf.h prep bootstrap-libpam +$(THINGSTOMAKE): config.h prep bootstrap-libpam $(MAKE) -C $@ all -install: _pam_aconf.h prep +install: config.h prep for x in $(THINGSTOMAKE) ; do $(MAKE) -C $$x install ; done remove: - rm -f $(FAKEROOT)$(INCLUDED)/_pam_aconf.h + rm -f $(FAKEROOT)$(INCLUDED)/config.h for x in $(THINGSTOMAKE) ; do $(MAKE) -C $$x remove ; done release: diff --git a/_pam_aconf.h.in b/_pam_aconf.h.in deleted file mode 100644 index 0a491d15..00000000 --- a/_pam_aconf.h.in +++ /dev/null @@ -1,277 +0,0 @@ -/* _pam_aconf.h.in. Generated from configure.in by autoheader. */ - -/* lots of stuff gets written to /tmp/pam-debug.log */ -#undef DEBUG - -/* Define to the type of elements in the array set by `getgroups'. Usually - this is either `int' or `gid_t'. */ -#undef GETGROUPS_T - -/* Define to 1 if you have the header file. */ -#undef HAVE_CRYPT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_DB_H - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -#undef HAVE_DIRENT_H - -/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ -#undef HAVE_DOPRNT - -/* Define to 1 if you have the header file. */ -#undef HAVE_FCNTL_H - -/* Define to 1 if you have the `getgrgid_r' function. */ -#undef HAVE_GETGRGID_R - -/* Define to 1 if you have the `getgrnam_r' function. */ -#undef HAVE_GETGRNAM_R - -/* Define to 1 if you have the `getgrouplist' function. */ -#undef HAVE_GETGROUPLIST - -/* Define to 1 if you have the `gethostname' function. */ -#undef HAVE_GETHOSTNAME - -/* Define to 1 if you have the `getpwnam_r' function. */ -#undef HAVE_GETPWNAM_R - -/* Define to 1 if you have the `getpwuid_r' function. */ -#undef HAVE_GETPWUID_R - -/* Define to 1 if you have the `getspnam_r' function. */ -#undef HAVE_GETSPNAM_R - -/* Define to 1 if you have the `gettimeofday' function. */ -#undef HAVE_GETTIMEOFDAY - -/* Define to 1 if you have the header file. */ -#undef HAVE_INITTYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_LASTLOG_H - -/* Define to 1 if you have the `crack' library (-lcrack). */ -#undef HAVE_LIBCRACK - -/* Define to 1 if you have the `crypt' library (-lcrypt). */ -#undef HAVE_LIBCRYPT - -/* Define to 1 if you have the `db' library (-ldb). */ -#undef HAVE_LIBDB - -/* Define to 1 if you have the `fl' library (-lfl). */ -#undef HAVE_LIBFL - -/* Define to 1 if you have the `fl' library (-lfl). */ -#undef HAVE_LIBFLEX - -/* Define to 1 if you have the `l' library (-ll). */ -#undef HAVE_LIBLEX - -/* Define to 1 if you have the `ndbm' library (-lndbm). */ -#undef HAVE_LIBNDBM - -/* Define to 1 if you have the `nsl' library (-lnsl). */ -#undef HAVE_LIBNSL - -/* Define to 1 if you have the `pwdb' library (-lpwdb). */ -#undef HAVE_LIBPWDB - -/* Define to 1 if you have the `nsl' library (-lnsl). */ -#undef HAVE_LIBSELINUX - -/* Define to 1 if you have the `util' library (-lutil). */ -#undef HAVE_LIBUTIL - -/* Define to 1 if you have the header file. */ -#undef HAVE_LIMITS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MALLOC_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the `mkdir' function. */ -#undef HAVE_MKDIR - -/* Define to 1 if you have the header file. */ -#undef HAVE_NDBM_H - -/* Define to 1 if you have the header file, and it defines `DIR'. */ -#undef HAVE_NDIR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_PATHS_H - -/* Define to 1 if you have the `select' function. */ -#undef HAVE_SELECT - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the `strcspn' function. */ -#undef HAVE_STRCSPN - -/* Define to 1 if you have the `strdup' function. */ -#undef HAVE_STRDUP - -/* Define to 1 if you have the `strerror' function. */ -#undef HAVE_STRERROR - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the `strspn' function. */ -#undef HAVE_STRSPN - -/* Define to 1 if you have the `strstr' function. */ -#undef HAVE_STRSTR - -/* Define to 1 if you have the `strtol' function. */ -#undef HAVE_STRTOL - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYSLOG_H - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -#undef HAVE_SYS_DIR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_FILE_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_FSUID_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_IOCTL_H - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -#undef HAVE_SYS_NDIR_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TIME_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_TERMIO_H - -/* Define to 1 if you have the `uname' function. */ -#undef HAVE_UNAME - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UTMPX_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UTMP_H - -/* Define to 1 if you have the `vprintf' function. */ -#undef HAVE_VPRINTF - -/* Every malloc etc. call will be tracked */ -#undef MEMORY_DEBUG - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* libpam should observe a global authentication lock */ -#undef PAM_LOCKING - -/* Path where mails are stored */ -#undef PAM_PATH_MAILDIR - -/* read both /etc/pam.d and /etc/pam.conf files */ -#undef PAM_READ_BOTH_CONFS - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - -/* Define to 1 if your declares `struct tm'. */ -#undef TM_IN_SYS_TIME - -/* build libraries with different names (suffixed with 'd') */ -#undef WITH_LIBDEBUG - -/* Build with prelude ids support */ -#undef WITH_PRELUDE - -/* Define to 1 if your processor stores words with the most significant byte - first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a - `char[]'. */ -#undef YYTEXT_POINTER - -#ifdef MEMORY_DEBUG -/* - * this is basically a hack - we need to include a semiarbitrary - * number of headers to ensure that we don't get silly prototype/macro - * confusion. - */ -# include -# include -# include -#endif /* MEMORY_DEBUG */ - -/* Define to the path, relative to SECUREDIR, where PAMs specific to this - architecture can be found. */ -#undef _PAM_ISA - -/* Define to empty if `const' does not conform to ANSI C. */ -#undef const - -/* Define to `int' if doesn't define. */ -#undef gid_t - -/* Define to `long' if does not define. */ -#undef off_t - -/* Define to `int' if does not define. */ -#undef pid_t - -/* Define to `unsigned' if does not define. */ -#undef size_t - -/* Define to `int' if doesn't define. */ -#undef uid_t diff --git a/config.h.in b/config.h.in new file mode 100644 index 00000000..acf6c435 --- /dev/null +++ b/config.h.in @@ -0,0 +1,277 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* lots of stuff gets written to /tmp/pam-debug.log */ +#undef DEBUG + +/* Define to the type of elements in the array set by `getgroups'. Usually + this is either `int' or `gid_t'. */ +#undef GETGROUPS_T + +/* Define to 1 if you have the header file. */ +#undef HAVE_CRYPT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_DB_H + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#undef HAVE_DIRENT_H + +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ +#undef HAVE_DOPRNT + +/* Define to 1 if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define to 1 if you have the `getgrgid_r' function. */ +#undef HAVE_GETGRGID_R + +/* Define to 1 if you have the `getgrnam_r' function. */ +#undef HAVE_GETGRNAM_R + +/* Define to 1 if you have the `getgrouplist' function. */ +#undef HAVE_GETGROUPLIST + +/* Define to 1 if you have the `gethostname' function. */ +#undef HAVE_GETHOSTNAME + +/* Define to 1 if you have the `getpwnam_r' function. */ +#undef HAVE_GETPWNAM_R + +/* Define to 1 if you have the `getpwuid_r' function. */ +#undef HAVE_GETPWUID_R + +/* Define to 1 if you have the `getspnam_r' function. */ +#undef HAVE_GETSPNAM_R + +/* Define to 1 if you have the `gettimeofday' function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define to 1 if you have the header file. */ +#undef HAVE_INITTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_LASTLOG_H + +/* Define to 1 if you have the `crack' library (-lcrack). */ +#undef HAVE_LIBCRACK + +/* Define to 1 if you have the `crypt' library (-lcrypt). */ +#undef HAVE_LIBCRYPT + +/* Define to 1 if you have the `db' library (-ldb). */ +#undef HAVE_LIBDB + +/* Define to 1 if you have the `fl' library (-lfl). */ +#undef HAVE_LIBFL + +/* Define to 1 if you have the `fl' library (-lfl). */ +#undef HAVE_LIBFLEX + +/* Define to 1 if you have the `l' library (-ll). */ +#undef HAVE_LIBLEX + +/* Define to 1 if you have the `ndbm' library (-lndbm). */ +#undef HAVE_LIBNDBM + +/* Define to 1 if you have the `nsl' library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define to 1 if you have the `pwdb' library (-lpwdb). */ +#undef HAVE_LIBPWDB + +/* Define to 1 if you have the `nsl' library (-lnsl). */ +#undef HAVE_LIBSELINUX + +/* Define to 1 if you have the `util' library (-lutil). */ +#undef HAVE_LIBUTIL + +/* Define to 1 if you have the header file. */ +#undef HAVE_LIMITS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MALLOC_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the `mkdir' function. */ +#undef HAVE_MKDIR + +/* Define to 1 if you have the header file. */ +#undef HAVE_NDBM_H + +/* Define to 1 if you have the header file, and it defines `DIR'. */ +#undef HAVE_NDIR_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_PATHS_H + +/* Define to 1 if you have the `select' function. */ +#undef HAVE_SELECT + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the `strcspn' function. */ +#undef HAVE_STRCSPN + +/* Define to 1 if you have the `strdup' function. */ +#undef HAVE_STRDUP + +/* Define to 1 if you have the `strerror' function. */ +#undef HAVE_STRERROR + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the `strspn' function. */ +#undef HAVE_STRSPN + +/* Define to 1 if you have the `strstr' function. */ +#undef HAVE_STRSTR + +/* Define to 1 if you have the `strtol' function. */ +#undef HAVE_STRTOL + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYSLOG_H + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#undef HAVE_SYS_DIR_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_FILE_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_FSUID_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_IOCTL_H + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#undef HAVE_SYS_NDIR_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have that is POSIX.1 compatible. */ +#undef HAVE_SYS_WAIT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_TERMIO_H + +/* Define to 1 if you have the `uname' function. */ +#undef HAVE_UNAME + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UTMPX_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UTMP_H + +/* Define to 1 if you have the `vprintf' function. */ +#undef HAVE_VPRINTF + +/* Every malloc etc. call will be tracked */ +#undef MEMORY_DEBUG + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* libpam should observe a global authentication lock */ +#undef PAM_LOCKING + +/* Path where mails are stored */ +#undef PAM_PATH_MAILDIR + +/* read both /etc/pam.d and /etc/pam.conf files */ +#undef PAM_READ_BOTH_CONFS + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to 1 if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME + +/* Define to 1 if your declares `struct tm'. */ +#undef TM_IN_SYS_TIME + +/* build libraries with different names (suffixed with 'd') */ +#undef WITH_LIBDEBUG + +/* Build with prelude ids support */ +#undef WITH_PRELUDE + +/* Define to 1 if your processor stores words with the most significant byte + first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN + +/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a + `char[]'. */ +#undef YYTEXT_POINTER + +#ifdef MEMORY_DEBUG +/* + * this is basically a hack - we need to include a semiarbitrary + * number of headers to ensure that we don't get silly prototype/macro + * confusion. + */ +# include +# include +# include +#endif /* MEMORY_DEBUG */ + +/* Define to the path, relative to SECUREDIR, where PAMs specific to this + architecture can be found. */ +#undef _PAM_ISA + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define to `int' if doesn't define. */ +#undef gid_t + +/* Define to `long' if does not define. */ +#undef off_t + +/* Define to `int' if does not define. */ +#undef pid_t + +/* Define to `unsigned' if does not define. */ +#undef size_t + +/* Define to `int' if doesn't define. */ +#undef uid_t diff --git a/configure b/configure index bcfb5475..389997c7 100755 --- a/configure +++ b/configure @@ -1314,7 +1314,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - ac_config_headers="$ac_config_headers _pam_aconf.h" + ac_config_headers="$ac_config_headers config.h" @@ -8142,7 +8142,7 @@ do case "$ac_config_target" in # Handling of arguments. "Make.Rules" ) CONFIG_FILES="$CONFIG_FILES Make.Rules" ;; - "_pam_aconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS _pam_aconf.h" ;; + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; diff --git a/configure.in b/configure.in index 11968af0..59c90a98 100644 --- a/configure.in +++ b/configure.in @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(conf/pam_conv1/pam_conv.y) dnl The configuration header file -AC_CONFIG_HEADER(_pam_aconf.h) +AC_CONFIG_HEADER(config.h) dnl dnl Release specific diff --git a/examples/xsh.c b/examples/xsh.c index 7ec5c7a2..e25531bb 100644 --- a/examples/xsh.c +++ b/examples/xsh.c @@ -5,7 +5,7 @@ /* Andrew Morgan (morgan@kernel.org) -- an example application * that invokes a shell, based on blank.c */ -#include +#include "config.h" #include #include diff --git a/libpam/pam_private.h b/libpam/pam_private.h index b795f6f7..9d759ca9 100644 --- a/libpam/pam_private.h +++ b/libpam/pam_private.h @@ -16,7 +16,7 @@ #ifndef _PAM_PRIVATE_H #define _PAM_PRIVATE_H -#include +#include "config.h" /* this is not used at the moment --- AGM */ #define LIBPAM_VERSION (LIBPAM_VERSION_MAJOR*0x100 + LIBPAM_VERSION_MINOR) diff --git a/libpam_misc/misc_conv.c b/libpam_misc/misc_conv.c index 9bee5884..926603bd 100644 --- a/libpam_misc/misc_conv.c +++ b/libpam_misc/misc_conv.c @@ -6,7 +6,7 @@ * Written by Andrew Morgan */ -#include +#include "config.h" #include #include diff --git a/modules/pam_access/pam_access.c b/modules/pam_access/pam_access.c index 2533243d..d35cf043 100644 --- a/modules/pam_access/pam_access.c +++ b/modules/pam_access/pam_access.c @@ -25,7 +25,7 @@ ************************************************************************* */ -#include +#include "config.h" #include #include diff --git a/modules/pam_cracklib/pam_cracklib.c b/modules/pam_cracklib/pam_cracklib.c index 1695e841..e260b0a8 100644 --- a/modules/pam_cracklib/pam_cracklib.c +++ b/modules/pam_cracklib/pam_cracklib.c @@ -35,7 +35,7 @@ * S.A.G. in the section on the cracklib module. */ -#include +#include "config.h" #include #ifdef HAVE_CRYPT_H diff --git a/modules/pam_env/pam_env.c b/modules/pam_env/pam_env.c index d05e33f8..5f43f07d 100644 --- a/modules/pam_env/pam_env.c +++ b/modules/pam_env/pam_env.c @@ -15,7 +15,7 @@ #define DEFAULT_ETC_ENVFILE "/etc/environment" #define DEFAULT_READ_ENVFILE 0 -#include +#include "config.h" #include #include diff --git a/modules/pam_filter/pam_filter.c b/modules/pam_filter/pam_filter.c index 2b7f6bf0..c03126ca 100644 --- a/modules/pam_filter/pam_filter.c +++ b/modules/pam_filter/pam_filter.c @@ -5,7 +5,7 @@ * Richard Stevens' UNIX Network Programming book. */ -#include +#include "config.h" #include #include diff --git a/modules/pam_filter/upperLOWER/upperLOWER.c b/modules/pam_filter/upperLOWER/upperLOWER.c index 72f9dab5..5aa0e2c0 100644 --- a/modules/pam_filter/upperLOWER/upperLOWER.c +++ b/modules/pam_filter/upperLOWER/upperLOWER.c @@ -7,7 +7,7 @@ * it serves no purpose other than to annoy the user... */ -#include +#include "config.h" #ifdef MEMORY_DEBUG # undef exit diff --git a/modules/pam_ftp/pam_ftp.c b/modules/pam_ftp/pam_ftp.c index 482ba3a4..870266cc 100644 --- a/modules/pam_ftp/pam_ftp.c +++ b/modules/pam_ftp/pam_ftp.c @@ -14,7 +14,7 @@ /* the following is a password that "can't be correct" */ #define BLOCK_PASSWORD "\177BAD PASSWPRD\177" -#include +#include "config.h" #include #include diff --git a/modules/pam_group/pam_group.c b/modules/pam_group/pam_group.c index 379c4d51..896f1e84 100644 --- a/modules/pam_group/pam_group.c +++ b/modules/pam_group/pam_group.c @@ -13,6 +13,8 @@ static const char rcsid[] = #define _BSD_SOURCE +#include "config.h" + #include #include #include diff --git a/modules/pam_issue/pam_issue.c b/modules/pam_issue/pam_issue.c index 5c93da88..9c52c106 100644 --- a/modules/pam_issue/pam_issue.c +++ b/modules/pam_issue/pam_issue.c @@ -17,6 +17,8 @@ #define _GNU_SOURCE #define _BSD_SOURCE +#include "config.h" + #include #include #include diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c index e9c89786..78a85e78 100644 --- a/modules/pam_lastlog/pam_lastlog.c +++ b/modules/pam_lastlog/pam_lastlog.c @@ -10,7 +10,7 @@ * present (login) service. */ -#include +#include "config.h" #include #include diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c index 704832ef..0c245539 100644 --- a/modules/pam_limits/pam_limits.c +++ b/modules/pam_limits/pam_limits.c @@ -17,7 +17,7 @@ #error THIS CODE IS KNOWN TO WORK ONLY ON LINUX !!! #endif -#include +#include "config.h" #include #include diff --git a/modules/pam_listfile/pam_listfile.c b/modules/pam_listfile/pam_listfile.c index d5b462d4..a2965b77 100644 --- a/modules/pam_listfile/pam_listfile.c +++ b/modules/pam_listfile/pam_listfile.c @@ -10,7 +10,7 @@ * This code began life as the pam_rootok module. */ -#include +#include "config.h" #include #include diff --git a/modules/pam_localuser/pam_localuser.c b/modules/pam_localuser/pam_localuser.c index e5496089..4c540376 100644 --- a/modules/pam_localuser/pam_localuser.c +++ b/modules/pam_localuser/pam_localuser.c @@ -33,7 +33,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "../../_pam_aconf.h" +#include "config.h" #include #include diff --git a/modules/pam_mail/pam_mail.c b/modules/pam_mail/pam_mail.c index dde8887f..81dedcea 100644 --- a/modules/pam_mail/pam_mail.c +++ b/modules/pam_mail/pam_mail.c @@ -8,7 +8,7 @@ * mailhash additions by Chris Adams 1998/7/11 */ -#include +#include "config.h" #include #include diff --git a/modules/pam_mkhomedir/pam_mkhomedir.c b/modules/pam_mkhomedir/pam_mkhomedir.c index cb681b90..6f68b0aa 100644 --- a/modules/pam_mkhomedir/pam_mkhomedir.c +++ b/modules/pam_mkhomedir/pam_mkhomedir.c @@ -28,7 +28,10 @@ */ /* I want snprintf dammit */ -#define _GNU_SOURCE 1 +#define _GNU_SOURCE + +#include "config.h" + #include #include #include diff --git a/modules/pam_motd/pam_motd.c b/modules/pam_motd/pam_motd.c index 8cdb633f..a64d6a41 100644 --- a/modules/pam_motd/pam_motd.c +++ b/modules/pam_motd/pam_motd.c @@ -10,7 +10,7 @@ * */ -#include +#include "config.h" #include #include diff --git a/modules/pam_pwdb/pam_pwdb.c b/modules/pam_pwdb/pam_pwdb.c index d736c6a8..b118ab23 100644 --- a/modules/pam_pwdb/pam_pwdb.c +++ b/modules/pam_pwdb/pam_pwdb.c @@ -20,7 +20,7 @@ static const char rcsid[] = /* #define DEBUG */ -#include +#include "config.h" #include #include diff --git a/modules/pam_pwdb/pwdb_chkpwd.c b/modules/pam_pwdb/pwdb_chkpwd.c index e4fe38f8..a4da0e13 100644 --- a/modules/pam_pwdb/pwdb_chkpwd.c +++ b/modules/pam_pwdb/pwdb_chkpwd.c @@ -13,7 +13,7 @@ * */ -#include +#include "config.h" #ifdef MEMORY_DEBUG # undef exit diff --git a/modules/pam_rhosts/pam_rhosts_auth.c b/modules/pam_rhosts/pam_rhosts_auth.c index 961d1910..816addad 100644 --- a/modules/pam_rhosts/pam_rhosts_auth.c +++ b/modules/pam_rhosts/pam_rhosts_auth.c @@ -38,7 +38,7 @@ * SUCH DAMAGE. */ -#include +#include "config.h" #define USER_RHOSTS_FILE "/.rhosts" /* prefixed by user's home dir */ diff --git a/modules/pam_selinux/pam_selinux.c b/modules/pam_selinux/pam_selinux.c index 290853d4..4f010009 100644 --- a/modules/pam_selinux/pam_selinux.c +++ b/modules/pam_selinux/pam_selinux.c @@ -38,7 +38,7 @@ * */ -#include "../../_pam_aconf.h" +#include "config.h" #include #include diff --git a/modules/pam_stress/pam_stress.c b/modules/pam_stress/pam_stress.c index 194c044d..0365f443 100644 --- a/modules/pam_stress/pam_stress.c +++ b/modules/pam_stress/pam_stress.c @@ -5,7 +5,7 @@ * created by Andrew Morgan 1996/3/12 */ -#include +#include "config.h" #include #include diff --git a/modules/pam_tally/pam_tally.c b/modules/pam_tally/pam_tally.c index 075392c7..b49ef352 100644 --- a/modules/pam_tally/pam_tally.c +++ b/modules/pam_tally/pam_tally.c @@ -14,7 +14,7 @@ * Audit option added for Tomas patch by Sebastien Tricaud 13 January 2005 */ -#include +#include "config.h" #if defined(MAIN) && defined(MEMORY_DEBUG) # undef exit diff --git a/modules/pam_time/pam_time.c b/modules/pam_time/pam_time.c index 5a5281a6..a7e79364 100644 --- a/modules/pam_time/pam_time.c +++ b/modules/pam_time/pam_time.c @@ -13,7 +13,7 @@ static const char rcsid[] = "\t\tVersion 0.22 for Linux-PAM\n" "Copyright (C) Andrew G. Morgan 1996 \n"; -#include +#include "config.h" #include #include diff --git a/modules/pam_umask/pam_umask.c b/modules/pam_umask/pam_umask.c index 53832253..e13f55ad 100644 --- a/modules/pam_umask/pam_umask.c +++ b/modules/pam_umask/pam_umask.c @@ -35,7 +35,7 @@ #define _GNU_SOURCE -#include +#include "config.h" #include #include diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c index 6e8ed614..b5160cde 100644 --- a/modules/pam_unix/pam_unix_acct.c +++ b/modules/pam_unix/pam_unix_acct.c @@ -34,7 +34,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include "config.h" #include #include diff --git a/modules/pam_unix/pam_unix_auth.c b/modules/pam_unix/pam_unix_auth.c index 2ed24127..23eba7e6 100644 --- a/modules/pam_unix/pam_unix_auth.c +++ b/modules/pam_unix/pam_unix_auth.c @@ -37,7 +37,7 @@ /* #define DEBUG */ -#include +#include "config.h" #include #include diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index 99b127a0..f1f87a2c 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -35,7 +35,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include "config.h" #include #include diff --git a/modules/pam_unix/pam_unix_sess.c b/modules/pam_unix/pam_unix_sess.c index b888b64f..e783039e 100644 --- a/modules/pam_unix/pam_unix_sess.c +++ b/modules/pam_unix/pam_unix_sess.c @@ -36,7 +36,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include "config.h" #include #include diff --git a/modules/pam_unix/unix_chkpwd.c b/modules/pam_unix/unix_chkpwd.c index 2ad95362..5e4b0eae 100644 --- a/modules/pam_unix/unix_chkpwd.c +++ b/modules/pam_unix/unix_chkpwd.c @@ -13,7 +13,7 @@ * */ -#include +#include "config.h" #ifdef MEMORY_DEBUG # undef exit diff --git a/modules/pam_unix/yppasswd_xdr.c b/modules/pam_unix/yppasswd_xdr.c index b1a60b4c..bf3f2fc6 100644 --- a/modules/pam_unix/yppasswd_xdr.c +++ b/modules/pam_unix/yppasswd_xdr.c @@ -10,7 +10,7 @@ * editied manually. */ -#include +#include "config.h" #include #include diff --git a/modules/pam_userdb/pam_userdb.c b/modules/pam_userdb/pam_userdb.c index 50170f84..09467877 100644 --- a/modules/pam_userdb/pam_userdb.c +++ b/modules/pam_userdb/pam_userdb.c @@ -6,7 +6,7 @@ * See the end of the file for Copyright Information */ -#include +#include "config.h" #include #include diff --git a/modules/pam_xauth/pam_xauth.c b/modules/pam_xauth/pam_xauth.c index 47832b6b..95a6dba5 100644 --- a/modules/pam_xauth/pam_xauth.c +++ b/modules/pam_xauth/pam_xauth.c @@ -35,7 +35,7 @@ /* "$Id$" */ -#include "../../_pam_aconf.h" +#include "config.h" #include #include #include diff --git a/modules/pammodutil/pammodutil.h b/modules/pammodutil/pammodutil.h index fbe81023..d60d588a 100644 --- a/modules/pammodutil/pammodutil.h +++ b/modules/pammodutil/pammodutil.h @@ -7,7 +7,8 @@ * Copyright (c) 2001 Andrew Morgan */ -#include +#include "config.h" + #include #include #include -- cgit v1.2.3