summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/pty/ChangeLog5
-rw-r--r--src/util/pty/update_utmp.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog
index 4e35fd93c..48d50d05b 100644
--- a/src/util/pty/ChangeLog
+++ b/src/util/pty/ChangeLog
@@ -1,3 +1,8 @@
+Mon Apr 6 19:35:33 1998 Tom Yu <tlyu@voltage-multiplier.mit.edu>
+
+ * update_utmp.c (pty_update_utmp): Don't record LOGIN_PROCESS
+ entries, as they confuse last on some systems. [pty/569]
+
Thu Mar 12 18:09:25 1998 Tom Yu <tlyu@mit.edu>
* update_utmp.c (pty_update_utmp): Fix bogus entry of
diff --git a/src/util/pty/update_utmp.c b/src/util/pty/update_utmp.c
index 0c106febe..d60d99fa5 100644
--- a/src/util/pty/update_utmp.c
+++ b/src/util/pty/update_utmp.c
@@ -194,5 +194,9 @@ long pty_update_utmp (process_type, pid, username, line, host, flags)
#endif /* HAVE_SETUTENT */
- return ptyint_update_wtmp(&ent, host, userbuf);
+ /* Don't record LOGIN_PROCESS entries. */
+ if (process_type == PTY_LOGIN_PROCESS)
+ return 0;
+ else
+ return ptyint_update_wtmp(&ent, host, userbuf);
}