summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-04-23 23:09:19 +1000
committerDamien Miller <djm@mindrot.org>2002-04-23 23:09:19 +1000
commitf1b9d11a3e75576ac3ecdf18bc65124c56991bfa (patch)
tree604b14d955e4db6c36b6df2b6f6fd66b5b564275 /loginrec.c
parentd77facda1a3fa4e495761c9d02608edfd8f74f68 (diff)
downloadopenssh-git-f1b9d11a3e75576ac3ecdf18bc65124c56991bfa.tar.gz
- (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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/loginrec.c b/loginrec.c
index ea3ec4f2..609e8476 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) {