diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | acconfig.h | 5 | ||||
-rw-r--r-- | configure.ac | 14 | ||||
-rw-r--r-- | defines.h | 10 | ||||
-rw-r--r-- | includes.h | 4 | ||||
-rw-r--r-- | openbsd-compat/bsd-misc.c | 20 | ||||
-rw-r--r-- | sshpty.c | 4 |
7 files changed, 49 insertions, 13 deletions
@@ -1,6 +1,9 @@ | |||
1 | 20050527 | 1 | 20050527 |
2 | - (djm) [defines.h] Use our realpath if we have to define PATH_MAX, spotted by | 2 | - (djm) [defines.h] Use our realpath if we have to define PATH_MAX, spotted by |
3 | David Leach; ok dtucker@ | 3 | David Leach; ok dtucker@ |
4 | - (dtucker) [acconfig.h configure.ac defines.h includes.h sshpty.c | ||
5 | openbsd-compat/bsd-misc.c] Add support for Ultrix. No, that's not a typo. | ||
6 | Required changes from Bernhard Simon, integrated by me. ok djm@ | ||
4 | 7 | ||
5 | 20050525 | 8 | 20050525 |
6 | - (djm) [mpaux.c mpaux.h Makefile.in] Remove old mpaux.[ch] code, it has not | 9 | - (djm) [mpaux.c mpaux.h Makefile.in] Remove old mpaux.[ch] code, it has not |
@@ -2612,4 +2615,4 @@ | |||
2612 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 2615 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
2613 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 2616 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
2614 | 2617 | ||
2615 | $Id: ChangeLog,v 1.3791 2005/05/27 09:36:56 djm Exp $ | 2618 | $Id: ChangeLog,v 1.3792 2005/05/27 11:13:40 dtucker Exp $ |
diff --git a/acconfig.h b/acconfig.h index 5721f65fb..bb2e62d23 100644 --- a/acconfig.h +++ b/acconfig.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: acconfig.h,v 1.181 2005/02/25 23:07:38 dtucker Exp $ */ | 1 | /* $Id: acconfig.h,v 1.182 2005/05/27 11:13:41 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1999-2003 Damien Miller. All rights reserved. | 4 | * Copyright (c) 1999-2003 Damien Miller. All rights reserved. |
@@ -119,9 +119,6 @@ | |||
119 | /* Define if you are on NeXT */ | 119 | /* Define if you are on NeXT */ |
120 | #undef HAVE_NEXT | 120 | #undef HAVE_NEXT |
121 | 121 | ||
122 | /* Define if you are on NEWS-OS */ | ||
123 | #undef HAVE_NEWS4 | ||
124 | |||
125 | /* Define if you want to enable PAM support */ | 122 | /* Define if you want to enable PAM support */ |
126 | #undef USE_PAM | 123 | #undef USE_PAM |
127 | 124 | ||
diff --git a/configure.ac b/configure.ac index 58a3ff47d..a936d2bfd 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.262 2005/05/26 10:48:25 djm Exp $ | 1 | # $Id: configure.ac,v 1.263 2005/05/27 11:13:41 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -278,7 +278,7 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | |||
278 | esac | 278 | esac |
279 | ;; | 279 | ;; |
280 | mips-sony-bsd|mips-sony-newsos4) | 280 | mips-sony-bsd|mips-sony-newsos4) |
281 | AC_DEFINE(HAVE_NEWS4) | 281 | AC_DEFINE(NEED_SETPRGP, [], [Need setpgrp to acquire controlling tty]) |
282 | SONY=1 | 282 | SONY=1 |
283 | ;; | 283 | ;; |
284 | *-*-netbsd*) | 284 | *-*-netbsd*) |
@@ -477,6 +477,12 @@ mips-sony-bsd|mips-sony-newsos4) | |||
477 | AC_DEFINE(MISSING_HOWMANY) | 477 | AC_DEFINE(MISSING_HOWMANY) |
478 | AC_DEFINE(MISSING_FD_MASK) | 478 | AC_DEFINE(MISSING_FD_MASK) |
479 | ;; | 479 | ;; |
480 | |||
481 | *-*-ultrix*) | ||
482 | AC_DEFINE(BROKEN_GETGROUPS, [], [getgroups(0,NULL) will return -1]) | ||
483 | AC_DEFINE(BROKEN_MMAP, [], [Ultrix mmap can't map files]) | ||
484 | AC_DEFINE(NEED_SETPRGP, [], [Need setpgrp to acquire controlling tty]) | ||
485 | AC_CHECK_HEADERS(sys/syslog.h) | ||
480 | esac | 486 | esac |
481 | 487 | ||
482 | # Allow user to specify flags | 488 | # Allow user to specify flags |
@@ -929,8 +935,8 @@ AC_CHECK_FUNCS(\ | |||
929 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ | 935 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ |
930 | pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \ | 936 | pstat prctl readpassphrase realpath recvmsg rresvport_af sendmsg \ |
931 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ | 937 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ |
932 | setproctitle setregid setreuid setrlimit \ | 938 | setproctitle setregid setreuid setrlimit setsid setvbuf \ |
933 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ | 939 | sigaction sigvec snprintf socketpair strdup strerror \ |
934 | strlcat strlcpy strmode strnvis strtonum strtoul sysconf tcgetpgrp \ | 940 | strlcat strlcpy strmode strnvis strtonum strtoul sysconf tcgetpgrp \ |
935 | truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \ | 941 | truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \ |
936 | ) | 942 | ) |
@@ -25,7 +25,7 @@ | |||
25 | #ifndef _DEFINES_H | 25 | #ifndef _DEFINES_H |
26 | #define _DEFINES_H | 26 | #define _DEFINES_H |
27 | 27 | ||
28 | /* $Id: defines.h,v 1.120 2005/05/27 09:36:56 djm Exp $ */ | 28 | /* $Id: defines.h,v 1.121 2005/05/27 11:13:41 dtucker Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -668,4 +668,12 @@ struct winsize { | |||
668 | 668 | ||
669 | /** end of login recorder definitions */ | 669 | /** end of login recorder definitions */ |
670 | 670 | ||
671 | #ifdef BROKEN_GETGROUPS | ||
672 | # define getgroups(a,b) ((a)==0 && (b)==NULL ? NGROUPS_MAX : getgroups((a),(b))) | ||
673 | #endif | ||
674 | |||
675 | #if defined(HAVE_MMAP) && defined(BROKEN_MMAP) | ||
676 | # undef HAVE_MMAP | ||
677 | #endif | ||
678 | |||
671 | #endif /* _DEFINES_H */ | 679 | #endif /* _DEFINES_H */ |
diff --git a/includes.h b/includes.h index 1625f8e30..89ae26d06 100644 --- a/includes.h +++ b/includes.h | |||
@@ -181,6 +181,10 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg } | |||
181 | # include <kafs.h> | 181 | # include <kafs.h> |
182 | #endif | 182 | #endif |
183 | 183 | ||
184 | #if defined(HAVE_SYS_SYSLOG_H) | ||
185 | # include <sys/syslog.h> | ||
186 | #endif | ||
187 | |||
184 | /* | 188 | /* |
185 | * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations | 189 | * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations |
186 | * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here. | 190 | * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here. |
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index 41f92cce9..6ba9bd986 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include "includes.h" | 18 | #include "includes.h" |
19 | #include "xmalloc.h" | 19 | #include "xmalloc.h" |
20 | 20 | ||
21 | RCSID("$Id: bsd-misc.c,v 1.26 2005/02/25 23:07:38 dtucker Exp $"); | 21 | RCSID("$Id: bsd-misc.c,v 1.27 2005/05/27 11:13:41 dtucker Exp $"); |
22 | 22 | ||
23 | #ifndef HAVE___PROGNAME | 23 | #ifndef HAVE___PROGNAME |
24 | char *__progname; | 24 | char *__progname; |
@@ -212,3 +212,21 @@ mysignal(int sig, mysig_t act) | |||
212 | return (signal(sig, act)); | 212 | return (signal(sig, act)); |
213 | #endif | 213 | #endif |
214 | } | 214 | } |
215 | |||
216 | #ifndef HAVE_STRDUP | ||
217 | char * | ||
218 | strdup(const char *str) | ||
219 | { | ||
220 | size_t len; | ||
221 | char *cp; | ||
222 | |||
223 | len = strlen(str) + 1; | ||
224 | cp = malloc(len); | ||
225 | if (cp != NULL) | ||
226 | if (strlcpy(cp, str, len) != len) { | ||
227 | free(cp); | ||
228 | return NULL; | ||
229 | } | ||
230 | return cp; | ||
231 | } | ||
232 | #endif | ||
@@ -128,10 +128,10 @@ pty_make_controlling_tty(int *ttyfd, const char *tty) | |||
128 | if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0) | 128 | if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0) |
129 | error("ioctl(TIOCSCTTY): %.100s", strerror(errno)); | 129 | error("ioctl(TIOCSCTTY): %.100s", strerror(errno)); |
130 | #endif /* TIOCSCTTY */ | 130 | #endif /* TIOCSCTTY */ |
131 | #ifdef HAVE_NEWS4 | 131 | #ifdef NEED_SETPGRP |
132 | if (setpgrp(0,0) < 0) | 132 | if (setpgrp(0,0) < 0) |
133 | error("SETPGRP %s",strerror(errno)); | 133 | error("SETPGRP %s",strerror(errno)); |
134 | #endif /* HAVE_NEWS4 */ | 134 | #endif /* NEED_SETPGRP */ |
135 | #ifdef USE_VHANGUP | 135 | #ifdef USE_VHANGUP |
136 | old = signal(SIGHUP, SIG_IGN); | 136 | old = signal(SIGHUP, SIG_IGN); |
137 | vhangup(); | 137 | vhangup(); |