From 52bcc044e3371e9808123356784cf44dd11132dd Mon Sep 17 00:00:00 2001 From: damien Date: Mon, 1 May 2000 14:03:55 +0000 Subject: [PATCH] - Irix portability fixes - don't include netinet headers more than once - Make sure we don't save PRNG seed more than once --- ChangeLog | 2 ++ configure.in | 3 +-- defines.h | 5 +---- entropy.c | 2 ++ includes.h | 3 --- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index de8490ae..6f54e449 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,8 @@ - Add some missing ifdefs to auth2.c - Deprecate perl-tk askpass. + - Irix portability fixes - don't include netinet headers more than once + - Make sure we don't save PRNG seed more than once 20000430 - Merge HP-UX fixes and TCB support from Ged Lodder diff --git a/configure.in b/configure.in index 2e50df91..8046fa3e 100644 --- a/configure.in +++ b/configure.in @@ -43,7 +43,6 @@ case "$host" in LDFLAGS="$LDFLAGS -L/usr/local/lib" AC_DEFINE(IPADDR_IN_DISPLAY) AC_DEFINE(USE_UTMPX) - AC_DEFINE(NEED_IN_SYSTM_H) AC_MSG_CHECKING(for HPUX trusted system password database) if test -f /tcb/files/auth/system/default; then AC_MSG_RESULT(yes) @@ -130,7 +129,7 @@ if test -z "$no_libnsl" ; then fi # Checks for header files. -AC_CHECK_HEADERS(bstring.h endian.h lastlog.h login.h maillock.h netdb.h netgroup.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h util.h utmp.h utmpx.h) +AC_CHECK_HEADERS(bstring.h endian.h lastlog.h login.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h util.h utmp.h utmpx.h) # Checks for library functions. AC_CHECK_FUNCS(arc4random bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage innetgr md5_crypt mkdtemp openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy updwtmpx vsnprintf vhangup _getpty) diff --git a/defines.h b/defines.h index b1e28ca0..9490e77e 100644 --- a/defines.h +++ b/defines.h @@ -7,11 +7,8 @@ #include /* For SHUT_XXXX */ +# include /* For typedefs */ #include /* For IPv6 macros */ - -#ifdef NEED_IN_SYSTM_H -# include -#endif #include /* For IPTOS macros */ #ifdef HAVE_SYS_BITYPES_H diff --git a/entropy.c b/entropy.c index 0b0b5361..15869ea0 100644 --- a/entropy.c +++ b/entropy.c @@ -520,6 +520,8 @@ prng_write_seedfile(void) { if (prng_seed_saved) return; + prng_seed_saved = 1; + pw = getpwuid(getuid()); if (pw == NULL) fatal("Couldn't get password entry for current user (%i): %s", diff --git a/includes.h b/includes.h index 1a0e76f3..a83e0316 100644 --- a/includes.h +++ b/includes.h @@ -30,10 +30,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #include #include -#include -#include #include -#include #include #include -- 2.45.2