PTY_LOGIN_PROCESS types on BSD-ish systems.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10499
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Mar 12 18:09:25 1998 Tom Yu <tlyu@mit.edu>
+
+ * update_utmp.c (pty_update_utmp): Fix bogus entry of
+ PTY_LOGIN_PROCESS types on BSD-ish systems.
+
Wed Feb 18 16:33:58 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove trailing slash from thisconfigdir. Fix up
strncpy(ent.ut_line, line+sizeof("/dev/")-1, sizeof(ent.ut_line));
ent.ut_time = time(0);
-#ifndef NO_UT_PID
+#ifdef NO_UT_PID
+ if (process_type == PTY_LOGIN_PROCESS)
+ return 0;
+#else /* NO_UT_PID */
ent.ut_pid = pid;
- switch ( process_type ) {
+ switch (process_type) {
case PTY_LOGIN_PROCESS:
- ent . ut_type = LOGIN_PROCESS;
+ ent.ut_type = LOGIN_PROCESS;
break;
case PTY_USER_PROCESS:
ent.ut_type = USER_PROCESS;