libtool-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Libtool branch, master, updated. v2.2.4-16-g154ca8a


From: Ralf Wildenhues
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.4-16-g154ca8a
Date: Sun, 01 Jun 2008 07:39:19 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  154ca8a7087116d45e7e66d218d5d84f02708ebb (commit)
      from  be6f90aa33bfaa28dcaba8cc269ef504a51f6f9a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 154ca8a7087116d45e7e66d218d5d84f02708ebb
Author: Stas Maximov <address@hidden>
Date:   Sun Jun 1 09:36:19 2008 +0200

    Check only regular files, not devices, for lalibs.
    
    * libltdl/config/ltmain.m4sh (functions func_lalib_p)
    (func_lalib_unsafe_p): Only read regular files and not device
    files.  Avoids blocking libtool executing gdb, when a
    pseudo-terminal device /dev/pts/NN is given as one of the
    arguments to gdb, as in:
    libtool --mode=execute gdb -q -nw -i mi -tty /dev/pts/4 prog
    
    Signed-off-by: Stas Maximov <address@hidden>
    Signed-off-by: Ralf Wildenhues <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                  |   10 ++++++++++
 libltdl/config/ltmain.m4sh |    7 ++++---
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 90c8ebd..6dc24f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-05-01  Stas Maximov  <address@hidden>  (tiny change)
+
+       Check only regular files, not devices, for lalibs.
+       * libltdl/config/ltmain.m4sh (functions func_lalib_p)
+       (func_lalib_unsafe_p): Only read regular files and not device
+       files.  Avoids blocking libtool executing gdb, when a
+       pseudo-terminal device /dev/pts/NN is given as one of the
+       arguments to gdb, as in:
+       libtool --mode=execute gdb -q -nw -i mi -tty /dev/pts/4 prog
+
 2008-05-31  Peter O'Gorman  <address@hidden>
 
        Skip darwin test if fat link fails.
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 144bc76..84977a0 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -451,8 +451,9 @@ $opt_help || {
 # determined imposters.
 func_lalib_p ()
 {
-    $SED -e 4q "$1" 2>/dev/null \
-      | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
+    test -f "$1" && 
+      $SED -e 4q "$1" 2>/dev/null \
+        | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
 }
 
 # func_lalib_unsafe_p file
@@ -465,7 +466,7 @@ func_lalib_p ()
 func_lalib_unsafe_p ()
 {
     lalib_p=no
-    if test -r "$1" && exec 5<&0 <"$1"; then
+    if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
        for lalib_p_l in 1 2 3 4
        do
            read lalib_p_line


hooks/post-receive
--
GNU Libtool




reply via email to

[Prev in Thread] Current Thread [Next in Thread]