From: Tom Yu Date: Mon, 6 Apr 1998 23:38:11 +0000 (+0000) Subject: * update_utmp.c (pty_update_utmp): Don't record LOGIN_PROCESS X-Git-Tag: krb5-1.1-beta1~758 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=da65a9c1c4af0ae4533c4861d05b11548d2e8a36;p=krb5.git * update_utmp.c (pty_update_utmp): Don't record LOGIN_PROCESS entries, as they confuse last on some systems. [pty/569] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10520 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 + + * 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 * 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); }