ent.ut_pid is sometimes a short; accordingly, use pid rather than
ent.ut_pid, which might have gotten truncated. This fixes an Irix
problem found by <rbasch@mit.edu>.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11394
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Apr 23 23:13:57 1999 Tom Yu <tlyu@mit.edu>
+
+ * update_utmp.c (pty_update_utmp): utx.ut_pid is a pid_t, and
+ ent.ut_pid is sometimes a short; accordingly, use pid rather than
+ ent.ut_pid, which might have gotten truncated. This fixes an Irix
+ problem found by <rbasch@mit.edu>.
+
1999-04-14 <tytso@rsts-11.mit.edu>
* update_wtmp.c: Don't use updwtmpx() even if it exists for glibc
strncpy(utx.ut_user, ent.ut_user, sizeof(ent.ut_user));
strncpy(utx.ut_id, ent.ut_id, sizeof(ent.ut_id));
strncpy(utx.ut_line, ent.ut_line, sizeof(ent.ut_line));
- utx.ut_pid = ent.ut_pid;
+ utx.ut_pid = pid; /* kludge for Irix, etc. to avoid trunc. */
utx.ut_type = ent.ut_type;
#ifdef UT_EXIT_STRUCTURE_DIFFER
utx.ut_exit.ut_exit = ent.ut_exit.e_exit;