diff options
author | Damien Miller <djm@mindrot.org> | 2002-04-23 23:09:19 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-04-23 23:09:19 +1000 |
commit | f1b9d11a3e75576ac3ecdf18bc65124c56991bfa (patch) | |
tree | 604b14d955e4db6c36b6df2b6f6fd66b5b564275 | |
parent | d77facda1a3fa4e495761c9d02608edfd8f74f68 (diff) |
- (djm) Bug #214: Fix utmp for Irix (don't strip "tty"). Patch from
Kevin Taylor <no@nowhere.org> (??) via Philipp Grau
<phgrau@zedat.fu-berlin.de>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | acconfig.h | 5 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | loginrec.c | 7 |
4 files changed, 17 insertions, 4 deletions
@@ -6,6 +6,9 @@ | |||
6 | Antti Tapaninen <aet@cc.hut.fi> | 6 | Antti Tapaninen <aet@cc.hut.fi> |
7 | - (djm) Define BROKEN_REALPATH for AIX, patch from | 7 | - (djm) Define BROKEN_REALPATH for AIX, patch from |
8 | Antti Tapaninen <aet@cc.hut.fi> | 8 | Antti Tapaninen <aet@cc.hut.fi> |
9 | - (djm) Bug #214: Fix utmp for Irix (don't strip "tty"). Patch from | ||
10 | Kevin Taylor <no@nowhere.org> (??) via Philipp Grau | ||
11 | <phgrau@zedat.fu-berlin.de> | ||
9 | - (djm) Bug #213: Simplify CMSG_ALIGN macros to avoid symbol clashes. | 12 | - (djm) Bug #213: Simplify CMSG_ALIGN macros to avoid symbol clashes. |
10 | Reported by Doug Manton <dmanton@emea.att.com> | 13 | Reported by Doug Manton <dmanton@emea.att.com> |
11 | - (djm) Bug #222: Fix tests for getaddrinfo on OSF/1. Spotted by | 14 | - (djm) Bug #222: Fix tests for getaddrinfo on OSF/1. Spotted by |
@@ -482,4 +485,4 @@ | |||
482 | - (stevesk) entropy.c: typo in debug message | 485 | - (stevesk) entropy.c: typo in debug message |
483 | - (djm) ssh-keygen -i needs seeded RNG; report from markus@ | 486 | - (djm) ssh-keygen -i needs seeded RNG; report from markus@ |
484 | 487 | ||
485 | $Id: ChangeLog,v 1.2075 2002/04/23 12:59:51 djm Exp $ | 488 | $Id: ChangeLog,v 1.2076 2002/04/23 13:09:19 djm Exp $ |
diff --git a/acconfig.h b/acconfig.h index 84bf60f04..8a6f9411e 100644 --- a/acconfig.h +++ b/acconfig.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: acconfig.h,v 1.131 2002/04/13 01:04:41 djm Exp $ */ | 1 | /* $Id: acconfig.h,v 1.132 2002/04/23 13:09:19 djm Exp $ */ |
2 | 2 | ||
3 | #ifndef _CONFIG_H | 3 | #ifndef _CONFIG_H |
4 | #define _CONFIG_H | 4 | #define _CONFIG_H |
@@ -346,6 +346,9 @@ | |||
346 | /* Define if you want to use OpenSSL's internally seeded PRNG only */ | 346 | /* Define if you want to use OpenSSL's internally seeded PRNG only */ |
347 | #undef OPENSSL_PRNG_ONLY | 347 | #undef OPENSSL_PRNG_ONLY |
348 | 348 | ||
349 | /* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */ | ||
350 | #undef WITH_ABBREV_NO_TTY | ||
351 | |||
349 | @BOTTOM@ | 352 | @BOTTOM@ |
350 | 353 | ||
351 | /* ******************* Shouldn't need to edit below this line ************** */ | 354 | /* ******************* Shouldn't need to edit below this line ************** */ |
diff --git a/configure.ac b/configure.ac index b1511e59c..f4ec16a00 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.49 2002/04/23 12:52:46 djm Exp $ | 1 | # $Id: configure.ac,v 1.50 2002/04/23 13:09:19 djm Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -107,6 +107,7 @@ case "$host" in | |||
107 | LDFLAGS="$LDFLAGS" | 107 | LDFLAGS="$LDFLAGS" |
108 | PATH="$PATH:/usr/etc" | 108 | PATH="$PATH:/usr/etc" |
109 | AC_DEFINE(BROKEN_INET_NTOA) | 109 | AC_DEFINE(BROKEN_INET_NTOA) |
110 | AC_DEFINE(WITH_ABBREV_NO_TTY) | ||
110 | ;; | 111 | ;; |
111 | *-*-irix6*) | 112 | *-*-irix6*) |
112 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | 113 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
@@ -117,6 +118,7 @@ case "$host" in | |||
117 | AC_DEFINE(WITH_IRIX_AUDIT) | 118 | AC_DEFINE(WITH_IRIX_AUDIT) |
118 | AC_CHECK_FUNC(jlimit_startjob, [AC_DEFINE(WITH_IRIX_JOBS)]) | 119 | AC_CHECK_FUNC(jlimit_startjob, [AC_DEFINE(WITH_IRIX_JOBS)]) |
119 | AC_DEFINE(BROKEN_INET_NTOA) | 120 | AC_DEFINE(BROKEN_INET_NTOA) |
121 | AC_DEFINE(WITH_ABBREV_NO_TTY) | ||
120 | ;; | 122 | ;; |
121 | *-*-linux*) | 123 | *-*-linux*) |
122 | no_dev_ptmx=1 | 124 | no_dev_ptmx=1 |
diff --git a/loginrec.c b/loginrec.c index ea3ec4f2b..609e84768 100644 --- a/loginrec.c +++ b/loginrec.c | |||
@@ -163,7 +163,7 @@ | |||
163 | #include "log.h" | 163 | #include "log.h" |
164 | #include "atomicio.h" | 164 | #include "atomicio.h" |
165 | 165 | ||
166 | RCSID("$Id: loginrec.c,v 1.39 2002/02/25 01:56:47 tim Exp $"); | 166 | RCSID("$Id: loginrec.c,v 1.40 2002/04/23 13:09:19 djm Exp $"); |
167 | 167 | ||
168 | #ifdef HAVE_UTIL_H | 168 | #ifdef HAVE_UTIL_H |
169 | # include <util.h> | 169 | # include <util.h> |
@@ -564,6 +564,11 @@ line_abbrevname(char *dst, const char *src, int dstsize) | |||
564 | if (strncmp(src, "/dev/", 5) == 0) | 564 | if (strncmp(src, "/dev/", 5) == 0) |
565 | src += 5; | 565 | src += 5; |
566 | 566 | ||
567 | #ifdef WITH_ABBREV_NO_TTY | ||
568 | if (strncmp(src, "tty", 3) == 0) | ||
569 | src += 3; | ||
570 | #endif | ||
571 | |||
567 | len = strlen(src); | 572 | len = strlen(src); |
568 | 573 | ||
569 | if (len > 0) { | 574 | if (len > 0) { |