From c6bda4d30411c809d67e9fcc0b6d6d7e392f2d8d Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 22 Aug 1995 03:48:42 +0000 Subject: [PATCH] update_wtmp.c (ptyint_update_wtmp): If EMPTY is not defined, then set ut.ut_type to 0 instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6565 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/pty/ChangeLog | 5 +++++ src/util/pty/update_wtmp.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 6bb0c3423..f3e4ed1a8 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 15 21:42:16 1995 + + * update_wtmp.c (ptyint_update_wtmp): If EMPTY is not defined, + then set ut.ut_type to 0 instead. + Fri Aug 11 15:49:30 1995 Sam Hartman * Makefile.in (CFILES): Rename initialize_slave.c to init_slave.c diff --git a/src/util/pty/update_wtmp.c b/src/util/pty/update_wtmp.c index 0c07023bf..c71aba311 100644 --- a/src/util/pty/update_wtmp.c +++ b/src/util/pty/update_wtmp.c @@ -57,7 +57,11 @@ long ptyint_update_wtmp (ent) ut.ut_pid = getpid(); ut.ut_type = USER_PROCESS; } else { +#ifdef EMPTY ut.ut_type = EMPTY; +#else + ut.ut_type = 0; +#endif } #endif if (write(fd, (char *)&ut, sizeof(struct utmp)) != -- 2.26.2