From: Ralf Wildenhues Date: Sun, 28 Aug 2005 15:34:19 +0000 (+0000) Subject: * libltdl/config/ltmain.m4sh (func_lalib_unsafe_p) [osf]: X-Git-Tag: release-2-1b~550 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e5a53b3a08a55374ca1c52c7b862e1012fe2b98;p=thirdparty%2Flibtool.git * libltdl/config/ltmain.m4sh (func_lalib_unsafe_p) [osf]: Save file descriptor to original STDIN, and restore after redirection. Fixes memory corruption with Tru64 and OSF sh. Reported by Nicolas Joly . --- diff --git a/ChangeLog b/ChangeLog index eb7a07390..bff759e63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,12 @@ -2005-08-26 Ralf Wildenhues +2005-08-28 Ralf Wildenhues , + Gary V. Vaughan + + * libltdl/config/ltmain.m4sh (func_lalib_unsafe_p) [osf]: + Save file descriptor to original STDIN, and restore after + redirection. Fixes memory corruption with Tru64 and OSF sh. + Reported by Nicolas Joly . + +2005-08-26 Ralf Wildenhues , Peter Ekberg * tests/early-libtool.at: Fix goofed up make rules in diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 17fe229f8..a855fa188 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -603,7 +603,7 @@ func_lalib_p () func_lalib_unsafe_p () { lalib_p=no - if test -r "$1" && exec <"$1"; then + if test -r "$1" && exec 5<&1 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line @@ -611,7 +611,7 @@ func_lalib_unsafe_p () \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done - exec <&- + exec 1<&5 5<&- fi test "$lalib_p" = yes }