configure.ac |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 62e3a541aa5338dfcbcb556e6881056fa5ae38ef
Author:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
AuthorDate: Tue May 6 12:02:08 2025 +0200
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Tue May 6 14:42:09 2025 +0200

    configure.ac: fix PathFormat when called with empty value
    
    in wsl-as-helper case this could lead to resulting in an "ECHO is on."
    value. That's completely bogus and also breaks other sanity checks
    that check for an empty variable.
    
    Change-Id: Ifb5c785782a5a7d0f08c8f625725a0d0a4dc241a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184985
    Tested-by: Jenkins
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>

diff --git a/configure.ac b/configure.ac
index 85d0ac43aef9..efe9f6431181 100644
--- a/configure.ac
+++ b/configure.ac
@@ -107,6 +107,12 @@ PathFormat()
     #
     # /usr/bin/find.exe => C:/cygwin64/bin/find.exe
 
+    if test -z "$1"; then
+        formatted_path=""
+        formatted_path_unix=""
+        return
+    fi
+
     if test -n "$UNITTEST_WSL_PATHFORMAT"; then
         printf "PathFormat $1 ==> "
     fi

Reply via email to