From a8a8fb0757b589da5354daafe1a0922393c31916 Mon Sep 17 00:00:00 2001 From: rpm-build Date: Oct 08 2020 09:02:33 +0000 Subject: tcsh-6.20.00-007-look-for-tgetent-in-libtinfo.patch patch_name: tcsh-6.20.00-007-look-for-tgetent-in-libtinfo.patch present_in_specfile: true location_in_specfile: 8 --- diff --git a/Fixes b/Fixes index 4ad4840..58e755d 100644 --- a/Fixes +++ b/Fixes @@ -1,3 +1,4 @@ + 5. Look for tgetent in libtinfo as well (Werner Fink) 4. Don't play pointer tricks that are undefined in modern c (Brooks Davis) 3. Fix out of bounds read (Brooks Davis) 2. Fix type of read in prompt confirmation (eg. rmstar) (David Kaspar) diff --git a/configure b/configure index 2a56740..28bcc16 100755 --- a/configure +++ b/configure @@ -4284,7 +4284,7 @@ return tgetent (); return 0; } _ACEOF -for ac_lib in '' termlib termcap curses ncurses; do +for ac_lib in '' termlib tinfo termcap curses ncurses; do if test -z "$ac_lib"; then ac_res="none required" else diff --git a/configure.ac b/configure.ac index d83d3c1..70cda2a 100644 --- a/configure.ac +++ b/configure.ac @@ -317,7 +317,7 @@ esac dnl Checks for libraries AC_SEARCH_LIBS(crypt, crypt) AC_SEARCH_LIBS(getspnam, sec) -AC_SEARCH_LIBS([tgetent], [termlib termcap curses ncurses], [], [ +AC_SEARCH_LIBS([tgetent], [termlib tinfo termcap curses ncurses], [], [ AC_MSG_ERROR([unable to find the tgetent() function]) ]) AC_SEARCH_LIBS(gethostbyname, nsl)