_known_hosts_real: Add some quotes (Alioth #313158)
Should fix errors if $HOME contains spaces.
This commit is contained in:
parent
2bb6addc86
commit
74d80d17f9
@ -1357,7 +1357,7 @@ _known_hosts_real()
|
||||
else
|
||||
for i in /etc/ssh/ssh_config "${HOME}/.ssh/config" \
|
||||
"${HOME}/.ssh2/config"; do
|
||||
[ -r $i ] && config+=( "$i" )
|
||||
[ -r "$i" ] && config+=( "$i" )
|
||||
done
|
||||
fi
|
||||
|
||||
@ -1385,10 +1385,10 @@ _known_hosts_real()
|
||||
for i in /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 \
|
||||
/etc/known_hosts /etc/known_hosts2 ~/.ssh/known_hosts \
|
||||
~/.ssh/known_hosts2; do
|
||||
[ -r $i ] && kh+=( $i )
|
||||
[ -r "$i" ] && kh+=( "$i" )
|
||||
done
|
||||
for i in /etc/ssh2/knownhosts ~/.ssh2/hostkeys; do
|
||||
[ -d $i ] && khd+=( $i/*pub )
|
||||
[ -d "$i" ] && khd+=( "$i"/*pub )
|
||||
done
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user