Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37735146
en ru br
ALT Linux repos
S:6.3.20220618-alt4
5.0: 5.7-alt1
4.1: 5.6-alt4
4.0: 5.6-alt3
3.0: 5.4.20050108-alt3

Group :: System/Base
RPM: ncurses

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ncurses-5.7-alt.patch
Download


 misc/terminfo.src      |    1 +
 ncurses/tinfo/access.c |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/misc/terminfo.src b/misc/terminfo.src
index 92a8d69..fb4bb6c 100644
--- a/misc/terminfo.src
+++ b/misc/terminfo.src
@@ -3409,6 +3409,7 @@ xterm-24|vs100|xterms|xterm terminal emulator (X Window System),
 
 # This is xterm for ncurses.
 xterm|xterm terminal emulator (X Window System),
+	kbs=\177,
 	use=xterm-new,
 
 # These entries allow access to the X titlebar and icon name as a status line.
diff --git a/ncurses/tinfo/access.c b/ncurses/tinfo/access.c
index ce8ccda..2afdef3 100644
--- a/ncurses/tinfo/access.c
+++ b/ncurses/tinfo/access.c
@@ -156,6 +156,7 @@ _nc_is_file_path(const char *path)
 }
 
 #ifndef USE_ROOT_ENVIRON
+extern int __libc_enable_secure;
 /*
  * Returns true if we allow application to use environment variables that are
  * used for searching lists of directories, etc.
@@ -163,6 +164,8 @@ _nc_is_file_path(const char *path)
 NCURSES_EXPORT(int)
 _nc_env_access(void)
 {
+    if (__libc_enable_secure)
+	return FALSE;
 #if HAVE_ISSETUGID
     if (issetugid())
 	return FALSE;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin