+Sun Apr 14 03:41:49 1996 Sam Hartman <hartmans@zygorthian-space-raiders.MIT.EDU>
+
+ * krlogind.c (fatalperror): Only declar sys_errlist if needed.
+
+
+Sat Apr 13 17:47:36 1996 Sam Hartman <hartmans@mit.edu>
+
+ * krshd.c (doit): Use setsid instead of setpgrp if you have it.
+ Note this doesn't work for Ultrix.
+
+ * krlogind.c (doit): Don't call setpgrp or setsid; let pty library do
+ that for us.
+
Fri Apr 12 23:38:25 1996 Richard Basch <basch@lehman.com>
* krlogind.c (cleanup): Destroy any forwarded credentials at the
#include <sys/filio.h>
#endif
-#ifndef SETPGRP_TWOARG
-#define setpgrp(a,b) setpgrp()
-#endif
#ifndef HAVE_KILLPG
#define killpg(pid, sig) kill(-(pid), (sig))
signal(SIGTSTP, SIG_IGN);
#endif
-#ifdef hpux
- setpgrp2(0, 0);
-#else
- setpgrp(0, 0);
-#endif
#ifdef DO_NOT_USE_K_LOGIN
/* Pass down rusername and lusername to login. */
char *msg;
{
char buf[512];
+#ifdef NEED_SYS_ERRLIST
extern int sys_nerr;
extern char *sys_errlist[];
-
+#endif
if ((unsigned)errno < sys_nerr)
(void) sprintf(buf, "%s: %s", msg, sys_errlist[errno]);
else