Fix unwanted delinking path expansion on Windows

In short, we ran afoul of this issue because the Ghidra delinking
headless script begins its arguments with slashes, making them look like
absolute paths:

    https://stackoverflow.com/questions/7250130/how-to-stop-mingw-and-msys-from-mangling-path-names-given-at-the-command-line
This commit is contained in:
KeybadeBlox 2026-02-01 17:02:13 -05:00
parent a8b04d24d5
commit 91537e765a

View file

@ -58,6 +58,12 @@ delink() {
else suffix= else suffix=
fi fi
# POSIX compatibility layers for Windows (like in git bash) will
# interpret arguments like /exporter as filepaths and attempt to
# convert them to Windows paths, breaking them; this variable disables
# that
export MSYS_NO_PATHCONV=1
"$1/support/analyzeHeadless$suffix" "$2" "$3"\ "$1/support/analyzeHeadless$suffix" "$2" "$3"\
-process default.xbe\ -process default.xbe\
-noanalysis\ -noanalysis\