1 diff -urN XFree86-3.3.5.orig/xc/programs/xterm/Imakefile XFree86-3.3.5/xc/programs/xterm/Imakefile
2 --- XFree86-3.3.5.orig/xc/programs/xterm/Imakefile Wed Jul 28 15:37:50 1999
3 +++ XFree86-3.3.5/xc/programs/xterm/Imakefile Thu Sep 2 18:51:23 1999
5 #define XkbClientDefines /**/
8 +#if InstallXtermSetUID
9 +#undef InstallXtermSetUID
12 #ifndef XkbClientDepLibs
13 #define XkbClientDepLibs /**/
16 PUCCPTYDDEF = -DPUCC_PTYD /* does not need to be setuid */
20 + PTYLIB = -lutil -lutempter
22 #if ((LinuxCLibMajorVersion == 6) && (LinuxCLibMinorVersion < 1))
24 diff -urN XFree86-3.3.5.orig/xc/programs/xterm/main.c XFree86-3.3.5/xc/programs/xterm/main.c
25 --- XFree86-3.3.5.orig/xc/programs/xterm/main.c Thu Sep 2 16:49:51 1999
26 +++ XFree86-3.3.5/xc/programs/xterm/main.c Thu Sep 2 18:52:41 1999
31 -#if defined(__osf__) || (defined(__GLIBC__) && !defined(USE_USG_PTYS))
32 +#if defined(__osf__) || (defined(__GLIBC__) && !defined(USE_USG_PTYS)) || defined(__linux__)
34 return (openpty(pty, &tty, ttydev, NULL, NULL));
35 #elif (defined(SYSV) && defined(i386) && !defined(SVR4)) || defined(__QNXNTO__)
38 #endif /* sun vs TIOCSWINSZ */
41 + addToUtmp(ttydev, NULL, screen->respond);
45 if (pipe(pc_pipe) || pipe(cp_pipe))
47 if (pw && pw->pw_name)
48 Setenv ("LOGNAME=", pw->pw_name); /* for POSIX */
51 /* Set up our utmp entry now. We need to do it here
52 ** for the following reasons:
53 ** - It needs to have our correct process id (for
59 #else /* USE_SYSV_UTMP */
60 /* We can now get our ttyslot! We can also set the initial
65 register TScreen *screen = &term->screen;
69 #if defined(SVR4) || defined(SCO325)