summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authormouring <mouring>2001-08-06 23:29:16 +0000
committermouring <mouring>2001-08-06 23:29:16 +0000
commit8d3572c8642ca7f8ecc60871f5347712b779e25f (patch)
tree7dfc9743ef7f864afc0b969d1a2855d9fc7a37d0 /loginrec.c
parent3bea9e709f19f65267d5cabc7aaf31bd07a4d3a5 (diff)
downloadopenssh-8d3572c8642ca7f8ecc60871f5347712b779e25f.tar.gz
- (bal) Second around of UNICOS patches. A few other things left.
Patches by William L. Jones <jones@mail.utexas.edu>
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/loginrec.c b/loginrec.c
index e121ce35..5789aad7 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -163,7 +163,7 @@
#include "log.h"
#include "atomicio.h"
-RCSID("$Id: loginrec.c,v 1.33 2001/05/08 20:33:06 mouring Exp $");
+RCSID("$Id: loginrec.c,v 1.34 2001/08/06 23:29:17 mouring Exp $");
#ifdef HAVE_UTIL_H
# include <util.h>
@@ -616,9 +616,15 @@ construct_utmp(struct logininfo *li,
switch (li->type) {
case LTYPE_LOGIN:
ut->ut_type = USER_PROCESS;
+#ifdef _CRAY
+ cray_set_tmpdir(ut);
+#endif
break;
case LTYPE_LOGOUT:
ut->ut_type = DEAD_PROCESS;
+#ifdef _CRAY
+ cray_retain_utmp(ut, li->pid);
+#endif
break;
}
# endif