update_wtmp.c (ptyint_update_wtmp): If EMPTY is not defined, then set
authorTheodore Tso <tytso@mit.edu>
Tue, 22 Aug 1995 03:48:42 +0000 (03:48 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 22 Aug 1995 03:48:42 +0000 (03:48 +0000)
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
src/util/pty/update_wtmp.c

index 6bb0c34237ce681a4bad49a031fa3ace1e35d92c..f3e4ed1a8d6ca64cfd308a9ac0862822d1a4d921 100644 (file)
@@ -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
index 0c07023bf3fb5b00ee06a5f3f9c503b15a1b8e8e..c71aba3111ce09b9da7fba1cd519ad831a729eb3 100644 (file)
@@ -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)) !=