From: djm Date: Tue, 13 Jun 2000 08:57:53 +0000 (+0000) Subject: - (djm) Fixes from Andrew McGill : X-Git-Tag: V_2_1_1_P2~35 X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/commitdiff_plain/509b1f8801bc782316591d915fd01f6e6f297557 - (djm) Fixes from Andrew McGill : - Platform define for SCO 3.x which breaks on /dev/ptmx - Detect and try to fix missing MAXPATHLEN --- diff --git a/CREDITS b/CREDITS index f95260e8..dab15a3b 100644 --- a/CREDITS +++ b/CREDITS @@ -4,7 +4,8 @@ Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo de Raadt, and Dug Song - Creators of OpenSSH Andrew Stribblehill - Bugfixes -Andre Lucas - build, login and many other fixes +Andre Lucas - new login code, many fixes +Andrew McGill - SCO fixes Andy Sloane - bugfixes Arkadiusz Miskiewicz - IPv6 compat fixes Ben Taylor - Solaris debugging and fixes diff --git a/ChangeLog b/ChangeLog index b7f40e23..b360d361 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +20000613 + - (djm) Fixes from Andrew McGill : + - Platform define for SCO 3.x which breaks on /dev/ptmx + - Detect and try to fix missing MAXPATHLEN + 20000612 - (djm) Glob manpages in RPM spec files to catch compressed files - (djm) Full license in auth-pam.c diff --git a/configure.in b/configure.in index 77ece441..3bdf4113 100644 --- a/configure.in +++ b/configure.in @@ -129,6 +129,14 @@ case "$host" in mansubdir=cat LIBS="$LIBS -lgen -lsocket" ;; +*-*-sco3*) + CFLAGS="$CFLAGS -I/usr/local/include" + LDFLAGS="$LDFLAGS -L/usr/local/lib" + MANTYPE='$(CATMAN)' + mansubdir=cat + LIBS="$LIBS -lgen -lsocket" + no_dev_ptmx=1 + ;; esac # Allow user to specify flags @@ -170,7 +178,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 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 time.h util.h utmp.h utmpx.h) +AC_CHECK_HEADERS(bstring.h endian.h lastlog.h limits.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 time.h util.h utmp.h utmpx.h) # Checks for library functions. AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage innetgr md5_crypt memmove mkdtemp on_exit openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy vsnprintf vhangup _getpty __b64_ntop) diff --git a/defines.h b/defines.h index e60a587b..871adbf4 100644 --- a/defines.h +++ b/defines.h @@ -4,33 +4,29 @@ /* Necessary headers */ #include /* For [u]intxx_t */ - #include /* For SHUT_XXXX */ - -# include /* For typedefs */ +#include /* For MAXPATHLEN */ +#include /* For typedefs */ #include /* For IPv6 macros */ #include /* For IPTOS macros */ - #ifdef HAVE_SYS_BITYPES_H # include /* For u_intXX_t */ #endif - #ifdef HAVE_PATHS_H # include /* For _PATH_XXX */ #endif - +#ifdef HAVE_LIMITS_H +# include /* For PATH_MAX */ +#endif #ifdef HAVE_SYS_TIME_H # include /* For timersub */ #endif - #ifdef HAVE_MAILLOCK_H # include /* For _PATH_MAILDIR */ #endif - #ifdef HAVE_SYS_CDEFS_H # include /* For __P() */ #endif - #ifdef HAVE_SYS_SYSMACROS_H # include /* For MIN, MAX, etc */ #endif @@ -57,6 +53,14 @@ enum # define IPTOS_MINCOST IPTOS_LOWCOST #endif /* IPTOS_LOWDELAY */ +#ifndef MAXPATHLEN +# ifdef PATH_MAX +# define MAXPATHLEN PATH_MAX +# else /* PATH_MAX */ +# define MAXPATHLEN 64 /* Should be safe */ +# endif /* PATH_MAX */ +#endif /* MAXPATHLEN */ + /* Types */ /* If sys/types.h does not supply intXX_t, supply them ourselves */ diff --git a/includes.h b/includes.h index da1ee9ce..31b7f349 100644 --- a/includes.h +++ b/includes.h @@ -23,7 +23,6 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #include #include -#include #include #include #include @@ -58,9 +57,6 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #ifdef HAVE_NETDB_H # include #endif -#ifdef HAVE_PATHS_H -# include -#endif #ifdef HAVE_ENDIAN_H # include #endif