]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in, libtoolize.in, commit, config/mailnotify: Correctly
authorScott James Remnant <scott@netsplit.com>
Fri, 13 Feb 2004 07:26:08 +0000 (07:26 +0000)
committerScott James Remnant <scott@netsplit.com>
Fri, 13 Feb 2004 07:26:08 +0000 (07:26 +0000)
quote usage of $basename and $dirname to avoid (unlikely) path
expansion.

ChangeLog
commit
config/mailnotify
libtoolize.in
ltmain.in

index e0bb012768aaec845eef4fdc048c79acc69073a8..d2152e7d6d1b82451398de55ab35382466736f3a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-02-13  Scott James Remnant  <scott@netsplit.com>
 
+       * ltmain.in, libtoolize.in, commit, config/mailnotify: Correctly
+       quote usage of $basename and $dirname to avoid (unlikely) path
+       expansion.
+
        * tests/sh.test: Test the config/ltmain.sh and libtoolize in the
        build directory not the source directory, where they won't exist
        during 'make distcheck'.
diff --git a/commit b/commit
index 094c22bdb3c3beef7d65b24988dd1c3e87084592..003239f4bbb01c2d35a214425339f8819e445f99 100755 (executable)
--- a/commit
+++ b/commit
@@ -85,7 +85,7 @@ basename="s,^.*/,,g"
 progpath="$0"
 
 # The name of this program:
-progname=`echo "$progpath" | $SED $basename`
+progname=`echo "$progpath" | $SED "$basename"`
 PROGRAM=clcommit
 
 # Global variables:
index a6e9c638bbfb43076708b24491054b6846a9cb7c..895eaf6d72c6cf52aeb92d09694d1633d4171ad0 100755 (executable)
@@ -72,7 +72,7 @@ basename="s,^.*/,,g"
 progpath="$0"
 
 # The name of this program:
-progname=`echo "$progpath" | $SED $basename`
+progname=`echo "$progpath" | $SED "$basename"`
 PROGRAM=mailnotify
 
 # Global variables:
index 2aa1739303851fdfade40dff751a2b0f287ee311..b769596f582cd183494d5bffefa1927bbb46ebac 100644 (file)
@@ -65,7 +65,7 @@ basename="s,^.*/,,g"
 progpath="$0"
 
 # The name of this program:
-progname=`echo "$progpath" | $SED $basename`
+progname=`echo "$progpath" | $SED "$basename"`
 PROGRAM=libtoolize
 
 # Global variables:
@@ -244,7 +244,7 @@ func_mkdir_p ()
     while test ! -d "$my_dir"; do
       my_dirs="$my_dir $my_dirs"
       case $my_dir in */*) ;; *) break ;; esac
-      my_dir=`echo "$my_dir" | $SED $dirname`
+      my_dir=`echo "$my_dir" | $SED "$dirname"`
     done
    test ! -n "$my_dirs" || $MKDIR $my_dirs
 }
@@ -258,7 +258,7 @@ func_copy ()
     my_destfile="$2"
     my_return_status=1
 
-    func_mkdir_p `echo "$my_destfile" | $SED $dirname`
+    func_mkdir_p `echo "$my_destfile" | $SED "$dirname"`
 
     $RM "$my_destfile"
     if $opt_link && $LN_S "$my_srcfile" "$my_destfile"; then
index db2d21eafad406bfa85ee9f2aa771e708cae8e84..e39150f02304f6619cb02373656b50ec7d9845b7 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -35,7 +35,7 @@ basename="s,^.*/,,g"
 progpath="$0"
 
 # The name of this program:
-progname=`echo "$progpath" | $SED $basename`
+progname=`echo "$progpath" | $SED "$basename"`
 modename="$progname"
 
 # Global variables: