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;