From: Sam Hartman Date: Tue, 30 Jan 1996 18:04:30 +0000 (+0000) Subject: Don't update the utmp file unless update_utmp is true X-Git-Tag: krb5-1.0-beta6~541 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c144ebce189ca8801d1ec6bcf1bfb214dd220828;p=krb5.git Don't update the utmp file unless update_utmp is true git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7414 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index c897bea8b..6a9f4e6f5 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,11 +1,17 @@ + Sat Jan 27 01:13:34 1996 Mark Eichin * void_assoc.c (ptyint_void_association): if we don't have TIOCNOTTY (HP/UX 9 for example) don't try to use it. +Fri Jan 26 00:26:37 1996 Sam Hartman + + * cleanup.c (pty_cleanup): Update utmp only if update_utmp is true. + Tue Jan 16 13:52:22 1996 Sam Hartman - * void_assoc.c (ptyint_void_association): Move setsid call from open_ctty to void_association. + * void_assoc.c (ptyint_void_association): Move setsid call from + open_ctty to void_association. * logwtmp.c (pty_logwtmp): Pass user argument to update_wtmp. diff --git a/src/util/pty/cleanup.c b/src/util/pty/cleanup.c index 57d1258ca..31522a47e 100644 --- a/src/util/pty/cleanup.c +++ b/src/util/pty/cleanup.c @@ -1,7 +1,7 @@ /* * pty_cleanup: Kill processes associated with pty. * - * Copyright 1995 by the Massachusetts Institute of Technology. + * (C)Copyright 1995, 1996 by the Massachusetts Institute of Technology. * * * Permission to use, copy, modify, and distribute this software and @@ -28,7 +28,8 @@ long pty_cleanup (slave, pid, update_utmp) { int retval, fd; - pty_update_utmp(PTY_DEAD_PROCESS,0, "", slave, (char *)0, PTY_UTMP_USERNAME_VALID); + if (update_utmp) + pty_update_utmp(PTY_DEAD_PROCESS,0, "", slave, (char *)0, PTY_UTMP_USERNAME_VALID); (void)chmod(slave, 0666); (void)chown(slave, 0, 0);