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)
- (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 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
166RCSID("$Id: loginrec.c,v 1.39 2002/02/25 01:56:47 tim Exp $"); 166RCSID("$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) {