- prf(fmt, &x1, TOTTY, u.u_ttyp);
+ if ((tp = u.u_ttyp) == NULL)
+ return;
+#ifdef notdef
+ if (tp->t_pgrp && (p = pfind(tp->t_pgrp)))
+ if (p->p_uid != u.u_uid) /* doesn't account for setuid */
+ return;
+#endif
+ (void)ttycheckoutq(tp, 1);
+ prf(fmt, &x1, TOTTY, tp);