diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/pty/ChangeLog | 5 | ||||
-rw-r--r-- | src/util/pty/update_wtmp.c | 4 |
2 files changed, 9 insertions, 0 deletions
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 <tytso@rsts-11.mit.edu> + + * 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 <hartmans@tertius.mit.edu> * 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)) != |