summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>1996-01-30 18:04:30 +0000
committerSam Hartman <hartmans@mit.edu>1996-01-30 18:04:30 +0000
commitc144ebce189ca8801d1ec6bcf1bfb214dd220828 (patch)
treeca561ffea3772f5b9eb307cce40b1564dc770cf8 /src/util
parent2ed3439c8194659ed5907c88f39daeb1e1c1b47a (diff)
downloadkrb5-c144ebce189ca8801d1ec6bcf1bfb214dd220828.tar.gz
krb5-c144ebce189ca8801d1ec6bcf1bfb214dd220828.tar.xz
krb5-c144ebce189ca8801d1ec6bcf1bfb214dd220828.zip
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
Diffstat (limited to 'src/util')
-rw-r--r--src/util/pty/ChangeLog8
-rw-r--r--src/util/pty/cleanup.c5
2 files changed, 10 insertions, 3 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog
index c897bea8bc..6a9f4e6f5f 100644
--- a/src/util/pty/ChangeLog
+++ b/src/util/pty/ChangeLog
@@ -1,11 +1,17 @@
+
Sat Jan 27 01:13:34 1996 Mark Eichin <eichin@cygnus.com>
* 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 <hartmans@tertius.mit.edu>
+
+ * cleanup.c (pty_cleanup): Update utmp only if update_utmp is true.
+
Tue Jan 16 13:52:22 1996 Sam Hartman <hartmans@tertius.mit.edu>
- * 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 57d1258cae..31522a47eb 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);