summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-11-05 01:51:05 +0000
committerMike Frysinger <vapier@gentoo.org>2004-11-05 01:51:05 +0000
commite4cfcf3a53d8ed2df23604dd40ab446795c9c5fb (patch)
treecc874c616c1cdd2f71c01e242a163c442b95ed2f /sys-libs/slang/files/slang-1.4.9.patch
parentpawn off onto kernel herd (Manifest recommit) (diff)
downloadgentoo-2-e4cfcf3a53d8ed2df23604dd40ab446795c9c5fb.tar.gz
gentoo-2-e4cfcf3a53d8ed2df23604dd40ab446795c9c5fb.tar.bz2
gentoo-2-e4cfcf3a53d8ed2df23604dd40ab446795c9c5fb.zip
who the hell names patches .dif ?
Diffstat (limited to 'sys-libs/slang/files/slang-1.4.9.patch')
-rw-r--r--sys-libs/slang/files/slang-1.4.9.patch72
1 files changed, 72 insertions, 0 deletions
diff --git a/sys-libs/slang/files/slang-1.4.9.patch b/sys-libs/slang/files/slang-1.4.9.patch
new file mode 100644
index 000000000000..ea32f46be479
--- /dev/null
+++ b/sys-libs/slang/files/slang-1.4.9.patch
@@ -0,0 +1,72 @@
+--- src/sldisply.c
++++ src/sldisply.c
+@@ -2156,6 +2156,13 @@
+ Term_Init_Str = SLtt_tgetstr ("ti");
+ Term_Reset_Str = SLtt_tgetstr ("te");
+
++# ifndef USE_TERMCAP
++ /* Use the given terminal specification of the terminfo entries
++ * even if we have almost vtxxx.
++ */
++ Keypad_Init_Str = SLtt_tgetstr ("ks");
++ Keypad_Reset_Str = SLtt_tgetstr ("ke");
++# else
+ /* If I do this for vtxxx terminals, arrow keys start sending ESC O A,
+ * which I do not want. This is mainly for HP terminals.
+ */
+@@ -2164,6 +2171,7 @@
+ Keypad_Init_Str = SLtt_tgetstr ("ks");
+ Keypad_Reset_Str = SLtt_tgetstr ("ke");
+ }
++#endif
+
+ /* Make up for defective termcap/terminfo databases */
+ if ((Vt100_Like && (term[2] != '1'))
+@@ -2351,10 +2359,12 @@
+ /* specific to vtxxx only */
+ void SLtt_enable_cursor_keys (void)
+ {
++#if 0
+ #ifdef __unix__
+ if (Vt100_Like)
+ #endif
+ tt_write_string("\033=\033[?1l");
++#endif
+ }
+
+ #ifdef VMS
+--- src/sltermin.c
++++ src/sltermin.c
+@@ -105,7 +105,32 @@
+ * I will also look into the use of setreuid, seteuid and setregid, setegid.
+ * FIXME: Priority=medium
+ */
++ /* If your system lacks setfsuid/getfsuid either write
++ equivalent support or dont use slang to build setuid/setgid
++ apps like Mutt */
++
++ if(setfsuid(getuid())==-1)
++ {
++ perror("setfsuid");
++ return NULL;
++ }
++ if(setfsgid(getgid())==-1)
++ {
++ perror("setfsgid");
++ return NULL;
++ }
+ fp = fopen (file, "rb");
++ if(setfsuid(geteuid())==-1)
++ {
++ perror("setfsuid");
++ return NULL;
++ }
++ if(setfsgid(getegid())==-1)
++ {
++ perror("setfsgid");
++ return NULL;
++ }
++
+ if (fp == NULL) return NULL;
+
+ if ((12 == fread ((char *) buf, 1, 12, fp) && (MAGIC == make_integer (buf))))