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'.
progpath="$0"
# The name of this program:
-progname=`echo "$progpath" | $SED $basename`
+progname=`echo "$progpath" | $SED "$basename"`
PROGRAM=clcommit
# Global variables:
progpath="$0"
# The name of this program:
-progname=`echo "$progpath" | $SED $basename`
+progname=`echo "$progpath" | $SED "$basename"`
PROGRAM=mailnotify
# Global variables:
progpath="$0"
# The name of this program:
-progname=`echo "$progpath" | $SED $basename`
+progname=`echo "$progpath" | $SED "$basename"`
PROGRAM=libtoolize
# Global variables:
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
}
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
progpath="$0"
# The name of this program:
-progname=`echo "$progpath" | $SED $basename`
+progname=`echo "$progpath" | $SED "$basename"`
modename="$progname"
# Global variables: