]> git.pld-linux.org Git - packages/XFree86.git/blobdiff - XFree86-nosuidxterm.patch
- fixes el, ie and pl layouts
[packages/XFree86.git] / XFree86-nosuidxterm.patch
index 121bb9be4e178a618f28e90db3d23d34f9b9c6e0..d26068315f3e2f3829356d2d8e0b531482711788 100644 (file)
@@ -1,17 +1,41 @@
---- XFree86-3.3.3.1/xc/programs/xterm/main.c.nosuidxterm       Sun Mar 28 20:12:51 1999
-+++ XFree86-3.3.3.1/xc/programs/xterm/main.c   Sun Mar 28 20:13:58 1999
-@@ -1862,7 +1862,7 @@
+diff -urN XFree86-3.3.5.orig/xc/programs/xterm/Imakefile XFree86-3.3.5/xc/programs/xterm/Imakefile
+--- XFree86-3.3.5.orig/xc/programs/xterm/Imakefile     Wed Jul 28 15:37:50 1999
++++ XFree86-3.3.5/xc/programs/xterm/Imakefile  Thu Sep  2 18:51:23 1999
+@@ -20,6 +20,10 @@
+ #define XkbClientDefines /**/
+ #endif
++#if InstallXtermSetUID
++#undef InstallXtermSetUID
++#endif
++
+ #ifndef XkbClientDepLibs
+ #define XkbClientDepLibs /**/
+ #endif
+@@ -48,6 +52,8 @@
+     PUCCPTYDDEF = -DPUCC_PTYD         /* does not need to be setuid */
+          PTYLIB = -lpucc
+ #endif
++
++         PTYLIB = -lutil -lutempter
+ #if ((LinuxCLibMajorVersion == 6) && (LinuxCLibMinorVersion < 1))
+          PTYLIB = -lutil
+diff -urN XFree86-3.3.5.orig/xc/programs/xterm/main.c XFree86-3.3.5/xc/programs/xterm/main.c
+--- XFree86-3.3.5.orig/xc/programs/xterm/main.c        Thu Sep  2 16:49:51 1999
++++ XFree86-3.3.5/xc/programs/xterm/main.c     Thu Sep  2 18:52:41 1999
+@@ -1934,7 +1934,7 @@
  static int
  get_pty (int *pty)
  {
--#ifdef __osf__
-+#if defined(__osf__) || defined(__linux__)
+-#if defined(__osf__) || (defined(__GLIBC__) && !defined(USE_USG_PTYS))
++#if defined(__osf__) || (defined(__GLIBC__) && !defined(USE_USG_PTYS)) || defined(__linux__)
      int tty;
      return (openpty(pty, &tty, ttydev, NULL, NULL));
- #endif
-@@ -2502,6 +2502,9 @@
- #endif        /* TIOCSWINSZ */
- #endif        /* sun */
+ #elif (defined(SYSV) && defined(i386) && !defined(SVR4)) || defined(__QNXNTO__)
+@@ -2611,6 +2611,9 @@
+       }
+ #endif        /* sun vs TIOCSWINSZ */
  
 +#undef UTMP
 +      addToUtmp(ttydev, NULL, screen->respond);
@@ -19,7 +43,7 @@
        if (!am_slave) {
  #ifdef USE_HANDSHAKE
            if (pipe(pc_pipe) || pipe(cp_pipe))
-@@ -3088,6 +3091,7 @@
+@@ -3230,6 +3233,7 @@
                if (pw && pw->pw_name)
                    Setenv ("LOGNAME=", pw->pw_name); /* for POSIX */
  #ifdef USE_SYSV_UTMP
@@ -27,7 +51,7 @@
                /* Set up our utmp entry now.  We need to do it here
                ** for the following reasons:
                **   - It needs to have our correct process id (for
-@@ -3185,7 +3189,6 @@
+@@ -3328,7 +3332,6 @@
  #endif
                /* close the file */
                (void) endutent();
@@ -35,7 +59,7 @@
  #else /* USE_SYSV_UTMP */
                /* We can now get our ttyslot!  We can also set the initial
                 * UTMP entry.
-@@ -3921,6 +3924,7 @@
+@@ -4063,6 +4066,7 @@
  Exit(int n)
  {
        register TScreen *screen = &term->screen;
  #ifdef UTMP
  #ifdef USE_SYSV_UTMP
  #if defined(SVR4) || defined(SCO325)
---- XFree86-3.3.3.1/xc/programs/xterm/Imakefile.nosuidxterm    Sat Oct 24 03:58:19 1998
-+++ XFree86-3.3.3.1/xc/programs/xterm/Imakefile        Sun Mar 28 20:13:58 1999
-@@ -20,6 +20,10 @@
- #define XkbClientDefines /**/
- #endif
-+#if InstallXtermSetUID
-+#undef InstallXtermSetUID
-+#endif
-+
- #ifndef XkbClientDepLibs
- #define XkbClientDepLibs /**/
- #endif
-@@ -48,6 +52,8 @@
-     PUCCPTYDDEF = -DPUCC_PTYD         /* does not need to be setuid */
-          PTYLIB = -lpucc
- #endif
-+
-+         PTYLIB = -lutil -lutempter
- #if XtermWithI18N
-         I18NDEF = -DI18N
This page took 0.083463 seconds and 4 git commands to generate.