From 91537e765ac9f4a19feb5e947988129814efc7f1 Mon Sep 17 00:00:00 2001 From: KeybadeBlox Date: Sun, 1 Feb 2026 17:02:13 -0500 Subject: [PATCH] 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 --- delink/delink.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/delink/delink.sh b/delink/delink.sh index dab87b2..2df52e2 100755 --- a/delink/delink.sh +++ b/delink/delink.sh @@ -58,6 +58,12 @@ delink() { else suffix= 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"\ -process default.xbe\ -noanalysis\