-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: b023bf4ec014d0ff2fb91399b37691402076fa20:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit b023bf4ec014d0ff2fb91399b37691402076fa20
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Thu Jan 19 10:44:44 2006 +0000

    *** empty log message ***

diff --git a/src/ptytty.C b/src/ptytty.C

index a583743c68ce3fb41284ab385a0d5c1d639842c7..

index ..33ed72a34dd7c601bf2d6a493aeb2a1dd9edda60 100644

--- a/src/ptytty.C
+++ b/src/ptytty.C
@@ -381,7 +381,7 @@ static struct ttyconf {
 #endif                          /* TTY_GID_SUPPORT */
         {
           mode = S_IRUSR | S_IWUSR | S_IWGRP | S_IWOTH;
-          gid = getgid ();
+          gid = 0;
         }
     }
 } ttyconf;
@@ -396,33 +396,16 @@ rxvt_ptytty_unix::privileges (rxvt_privaction action)

   if (action == SAVE)
     {
-# ifndef RESET_TTY_TO_COMMON_DEFAULTS
-      /* store original tty status for restoration rxvt_clean_exit () -- rgg 04/12/95 */
-      if (lstat (name, &savestat) < 0)       /* you lose out */
-        ;
-      else
-# endif
-        {
-          saved = true;
-          chown (name, getuid (), ttyconf.gid);      /* fail silently */
-          chmod (name, ttyconf.mode);
+      chown (name, getuid (), ttyconf.gid);      /* fail silently */
+      chmod (name, ttyconf.mode);
 # ifdef HAVE_REVOKE
-          revoke (name);
+      revoke (name);
 # endif
-        }
     }
   else
     {                    /* action == RESTORE */
-# ifndef RESET_TTY_TO_COMMON_DEFAULTS
-      if (saved)
-        {
-          chmod (name, savestat.st_mode);
-          chown (name, savestat.st_uid, savestat.st_gid);
-        }
-# else
-      chmod (name, (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH));
-      chown (name, 0, 0);
-# endif
+      chmod (name, RESTORE_TTY_MODE);
+      chown (name, 0, ttyconf.gid);
     }
 }
 #endif
@@ -431,9 +414,6 @@ rxvt_ptytty_unix::rxvt_ptytty_unix ()
 {
   pty = tty = -1;
   name = 0;
-#ifndef NO_SETOWNER_TTYDEV
-  saved = false;
-#endif
 #if UTMP_SUPPORT
   cmd_pid = 0;
 #endif

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 11:33:20 2024