diff options
author | Damien Miller <djm@mindrot.org> | 2002-04-23 15:09:19 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-04-23 15:09:19 +0200 |
commit | f1b9d11a3e75576ac3ecdf18bc65124c56991bfa (patch) | |
tree | 604b14d955e4db6c36b6df2b6f6fd66b5b564275 /loginrec.c | |
parent | - (djm) Bug #213: Simplify CMSG_ALIGN macros to avoid symbol clashes. (diff) | |
download | openssh-f1b9d11a3e75576ac3ecdf18bc65124c56991bfa.tar.xz openssh-f1b9d11a3e75576ac3ecdf18bc65124c56991bfa.zip |
- (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>
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/loginrec.c b/loginrec.c index ea3ec4f2b..609e84768 100644 --- a/loginrec.c +++ b/loginrec.c @@ -163,7 +163,7 @@ #include "log.h" #include "atomicio.h" -RCSID("$Id: loginrec.c,v 1.39 2002/02/25 01:56:47 tim Exp $"); +RCSID("$Id: loginrec.c,v 1.40 2002/04/23 13:09:19 djm Exp $"); #ifdef HAVE_UTIL_H # include <util.h> @@ -564,6 +564,11 @@ line_abbrevname(char *dst, const char *src, int dstsize) if (strncmp(src, "/dev/", 5) == 0) src += 5; +#ifdef WITH_ABBREV_NO_TTY + if (strncmp(src, "tty", 3) == 0) + src += 3; +#endif + len = strlen(src); if (len > 0) { |