branch development updated: ltmain.in: add parentheses to support values with spaces

Ileana Dumitrescu <[email protected]> Fri, 14 Nov 2025 13:40:07 -0500
Newsgroups gmane.comp.gnu.libtool.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch development
in repository libtool.

The following commit(s) were added to refs/heads/development by this push:
     new 09636566 ltmain.in: add parentheses to support values with spaces
09636566 is described below

commit 09636566ee2050bb2e52cfaabd4dca468aa26f55
Author: Richard J. Mathar <[email protected]>
AuthorDate: Thu Nov 13 10:09:40 2025 +0100

    ltmain.in: add parentheses to support values with spaces
    
    The variable may contain a value with spaces that cause errors due
    to the standard splitting of command line arguments by linux shells.
    See https://github.com/autotools-mirror/libtool/pull/4/files.
    
    Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79826
    
    * build-aux/ltmain.in: Add missing quotes around darwin_orig_dir.
---
 build-aux/ltmain.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 0f2c81f8..bb72916a 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -3505,7 +3505,7 @@ func_extract_archives ()
 	    $RM -rf unfat-$$
 	    cd "$darwin_orig_dir"
 	  else
-	    cd $darwin_orig_dir
+	    cd "$darwin_orig_dir"
 	    func_extract_an_archive "$my_xdir" "$my_xabs"
 	  fi # $darwin_arches
 	} # !$opt_dry_run