[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
minor fix for eterm
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: minor fix for eterm
- From: Michael Coulter <mjc_(_at_)_bitz_(_dot_)_ca>
- Date: Fri, 23 Apr 2004 17:52:06 -0700
This stops Eterm from randomly assigning keybindings for status.
Index: patches/patch-src_command.c
===================================================================
RCS file: /cvs/ports/x11/eterm/patches/patch-src_command.c,v
retrieving revision 1.4
diff -u -r1.4 patch-src_command.c
--- patches/patch-src_command.c 7 Mar 2002 20:00:19 -0000 1.4
+++ patches/patch-src_command.c 24 Apr 2004 00:43:19 -0000
@@ -1,6 +1,16 @@
---- src/command.c.orig Tue Nov 2 17:34:35 1999
-+++ src/command.c Thu Mar 7 20:46:30 2002
-@@ -676,6 +676,8 @@ privileges(int mode)
+--- src/command.c.orig 1999-11-02 08:34:13.000000000 -0800
++++ src/command.c 2004-04-23 17:39:56.000000000 -0700
+@@ -284,6 +284,9 @@ ioctl (fd, TIOCLSET, &(tt->local));\
+ #ifndef CLNEXT
+ # define CLNEXT '\026' /* ^V */
+ #endif
++#ifndef STATUS
++# define STATUS '\024' /* ^T */
++#endif
+
+ #ifndef VDISCRD
+ # ifdef VDISCARD
+@@ -676,6 +679,8 @@ privileges(int mode)
#ifdef HAVE_SETRESGID
setresgid(my_rgid, my_rgid, my_egid);
@@ -9,7 +19,7 @@
#elif defined(HAVE_SAVED_UIDS)
setregid(my_rgid, my_rgid);
#else
-@@ -685,6 +687,8 @@ privileges(int mode)
+@@ -685,6 +690,8 @@ privileges(int mode)
#ifdef HAVE_SETRESUID
setresuid(my_ruid, my_ruid, my_euid);
@@ -18,7 +28,7 @@
#elif defined(HAVE_SAVED_UIDS)
setreuid(my_ruid, my_ruid);
#else
-@@ -705,6 +709,8 @@ privileges(int mode)
+@@ -705,6 +712,8 @@ privileges(int mode)
#ifdef HAVE_SETRESUID
setresuid(my_ruid, my_euid, my_euid);
@@ -27,7 +37,7 @@
#elif defined(HAVE_SAVED_UIDS)
setreuid(my_ruid, my_euid);
#else
-@@ -714,6 +720,8 @@ privileges(int mode)
+@@ -714,6 +723,8 @@ privileges(int mode)
#ifdef HAVE_SETRESGID
setresgid(my_rgid, my_egid, my_egid);
@@ -36,7 +46,17 @@
#elif defined(HAVE_SAVED_UIDS)
setregid(my_rgid, my_egid);
#else
-@@ -2298,8 +2306,16 @@ run_command(char *argv[])
+@@ -2057,6 +2068,9 @@ get_ttymode(ttymode_t * tio)
+ # ifdef VLNEXT
+ tio->c_cc[VLNEXT] = CLNEXT;
+ # endif
++# ifdef VSTATUS
++ tio->c_cc[VSTATUS] = STATUS;
++# endif
+ }
+ tio->c_cc[VEOF] = CEOF;
+ tio->c_cc[VEOL] = VDISABLE;
+@@ -2298,8 +2312,16 @@ run_command(char *argv[])
because the exec*() calls reset the saved uid/gid to the
effective uid/gid -- mej */
# ifndef __CYGWIN32__
Visit your host, monkey.org