aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sshkey.tcl
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-05-23 17:04:27 -0400
committerTaylor Blau <me@ttaylorr.com>2025-05-23 17:04:27 -0400
commitafca9a4fb4e3c8acbc464bca69cde5c7397c25e1 (patch)
tree80b620507f14e2c9887879ca0dd152ee39e8dd8e /lib/sshkey.tcl
parentgit-gui: do not mistake command arguments as redirection operators (diff)
parentgit-gui: override exec and open only on Windows (diff)
downloadgit-afca9a4fb4e3c8acbc464bca69cde5c7397c25e1.tar.gz
git-afca9a4fb4e3c8acbc464bca69cde5c7397c25e1.zip
Merge branch 'ml/replace-auto-execok' into js/fix-open-exec
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'lib/sshkey.tcl')
-rw-r--r--lib/sshkey.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sshkey.tcl b/lib/sshkey.tcl
index b32bdd06e9..c3e681b899 100644
--- a/lib/sshkey.tcl
+++ b/lib/sshkey.tcl
@@ -83,7 +83,8 @@ proc make_ssh_key {w} {
set sshkey_title [mc "Generating..."]
$w.header.gen configure -state disabled
- set cmdline [list sh -c {echo | ssh-keygen -q -t rsa -f ~/.ssh/id_rsa 2>&1}]
+ set cmdline [list [shellpath] -c \
+ {echo | ssh-keygen -q -t rsa -f ~/.ssh/id_rsa 2>&1}]
if {[catch { set sshkey_fd [safe_open_command $cmdline] } err]} {
error_popup [mc "Could not start ssh-keygen:\n\n%s" $err]