Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
slang
slang-2.2.2.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File slang-2.2.2.dif of Package slang
diff -urN slang-2.2.2.orig/src/sldisply.c slang-2.2.2/src/sldisply.c --- slang-2.2.2.orig/src/sldisply.c 2009-12-05 20:03:51.000000000 +0100 +++ slang-2.2.2/src/sldisply.c 2010-08-15 13:30:36.000000000 +0200 @@ -2441,6 +2441,13 @@ Term_Init_Str = tt_tgetstr ("ti"); Term_Reset_Str = tt_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. */ @@ -2449,6 +2456,7 @@ Keypad_Init_Str = tt_tgetstr ("ks"); Keypad_Reset_Str = tt_tgetstr ("ke"); } +#endif /* Make up for defective termcap/terminfo databases */ if ((Vt100_Like && (term[2] != '1')) @@ -2651,10 +2659,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 diff -urN slang-2.2.2.orig/src/sltermin.c slang-2.2.2/src/sltermin.c --- slang-2.2.2.orig/src/sltermin.c 2009-12-05 20:03:51.000000000 +0100 +++ slang-2.2.2/src/sltermin.c 2010-08-15 13:35:11.000000000 +0200 @@ -23,6 +23,9 @@ USA. */ +#include <unistd.h> +#include <sys/types.h> + #include "slinclud.h" #include "slang.h" @@ -119,7 +122,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))))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor