]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (link mode): Handle spaces in paths to executed
authorDerek R. Price <derek@ximbiot.com>
Fri, 1 Jul 2005 02:23:01 +0000 (02:23 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 1 Jul 2005 02:23:01 +0000 (02:23 +0000)
programs.  Quote path in error message.

ChangeLog
ltmain.in

index ca4e9cbf42ea64415e10688874522931da051442..3ac3737db3d3bb9ffc0545ae7ba99fde2864fa6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-01  Derek R. Price  <derek@ximbiot.com>
+
+       * ltmain.in (link mode): Handle spaces in paths to executed
+       programs.  Quote path in error message.
+
 2005-06-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * THANKS: Updated.
index 91225f17f912437ddb29deb545774b8e73c328ef..7d48b54dcf197d3656997c2a674c105cdf76d7bd 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -5025,13 +5025,13 @@ else
        # Backslashes separate directories on plain windows
        *-*-mingw | *-*-os2*)
          $echo >> $output "\
-      exec \$progdir\\\\\$program \${1+\"\$@\"}
+      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
 "
          ;;
 
        *)
          $echo >> $output "\
-      exec \$progdir/\$program \${1+\"\$@\"}
+      exec \"\$progdir/\$program\" \${1+\"\$@\"}
 "
          ;;
        esac
@@ -5041,7 +5041,7 @@ else
     fi
   else
     # The program doesn't exist.
-    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
+    \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
     \$echo \"This script is just a wrapper for \$program.\" 1>&2
     $echo \"See the $PACKAGE documentation for more information.\" 1>&2
     exit $EXIT_FAILURE