summaryrefslogtreecommitdiff
path: root/lib/sshkey.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sshkey.tcl')
-rw-r--r--lib/sshkey.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sshkey.tcl b/lib/sshkey.tcl
index 589ff8f78a..2e006cb8ca 100644
--- a/lib/sshkey.tcl
+++ b/lib/sshkey.tcl
@@ -7,7 +7,7 @@ proc find_ssh_key {} {
~/.ssh/id_rsa.pub ~/.ssh/identity.pub
} {
if {[file exists $name]} {
- set fh [open $name r]
+ set fh [safe_open_file $name r]
set cont [read $fh]
close $fh
return [list $name $cont]