diff options
author | Theodore Tso <tytso@mit.edu> | 1995-08-22 03:48:42 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-08-22 03:48:42 +0000 |
commit | c6bda4d30411c809d67e9fcc0b6d6d7e392f2d8d (patch) | |
tree | fb6b8f89922bfa3bfaed5efdd2b5944e88d4e37d /src | |
parent | 537efd2ac7cef6ebc6c85272ce6a7e17ed24327f (diff) | |
download | krb5-c6bda4d30411c809d67e9fcc0b6d6d7e392f2d8d.tar.gz krb5-c6bda4d30411c809d67e9fcc0b6d6d7e392f2d8d.tar.xz krb5-c6bda4d30411c809d67e9fcc0b6d6d7e392f2d8d.zip |
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
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)) != |