]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: avoid auto_execok in do_windows_shortcut
authorMark Levedahl <mlevedahl@gmail.com>
Thu, 3 Apr 2025 04:37:08 +0000 (00:37 -0400)
committerTaylor Blau <me@ttaylorr.com>
Fri, 23 May 2025 21:04:23 +0000 (17:04 -0400)
commit00c7aa86e905175476e0dff149d570b48c34c8f1
tree9454ee9d633fa9e243e83f5b10a718134bfd2c6e
parent411cd493cb9998c2ba1c17dd98c3d3d4b121a1dd
git-gui: avoid auto_execok in do_windows_shortcut

git-gui on Windows uses auto_execok to locate git-gui.exe,
which performs the same flawed search as does the builtin exec.
Use _which instead, performing a safe PATH lookup.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
lib/shortcut.tcl