Skip to content

Commit 00c7aa8

Browse files
mark987ttaylorr
authored andcommitted
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 <[email protected]> Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent 411cd49 commit 00c7aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shortcut.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ proc do_windows_shortcut {} {
1212
set fn ${fn}.lnk
1313
}
1414
# Use git-gui.exe if available (ie: git-for-windows)
15-
set cmdLine [auto_execok git-gui.exe]
15+
set cmdLine [list [_which git-gui]]
1616
if {$cmdLine eq {}} {
1717
set cmdLine [list [info nameofexecutable] \
1818
[file normalize $::argv0]]

0 commit comments

Comments
 (0)