_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
|
else
|
||||||
for i in /etc/ssh/ssh_config "${HOME}/.ssh/config" \
|
for i in /etc/ssh/ssh_config "${HOME}/.ssh/config" \
|
||||||
"${HOME}/.ssh2/config"; do
|
"${HOME}/.ssh2/config"; do
|
||||||
[ -r $i ] && config+=( "$i" )
|
[ -r "$i" ] && config+=( "$i" )
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1385,10 +1385,10 @@ _known_hosts_real()
|
|||||||
for i in /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 \
|
for i in /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 \
|
||||||
/etc/known_hosts /etc/known_hosts2 ~/.ssh/known_hosts \
|
/etc/known_hosts /etc/known_hosts2 ~/.ssh/known_hosts \
|
||||||
~/.ssh/known_hosts2; do
|
~/.ssh/known_hosts2; do
|
||||||
[ -r $i ] && kh+=( $i )
|
[ -r "$i" ] && kh+=( "$i" )
|
||||||
done
|
done
|
||||||
for i in /etc/ssh2/knownhosts ~/.ssh2/hostkeys; do
|
for i in /etc/ssh2/knownhosts ~/.ssh2/hostkeys; do
|
||||||
[ -d $i ] && khd+=( $i/*pub )
|
[ -d "$i" ] && khd+=( "$i"/*pub )
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user