summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Robinson <git@nerdoftheherd.com>2021-10-19 06:02:47 +0100
committerMatt Robinson <git@nerdoftheherd.com>2021-10-19 06:02:47 +0100
commit305e03ee3e3828ab6f14cae0050c391f472308e2 (patch)
tree38e5aa3434dd40d95482f0f428f60c29499c03e9 /test
parent47071a379020a3228b7c0fefe9874b767a16fdea (diff)
downloaddropbear-305e03ee3e3828ab6f14cae0050c391f472308e2.tar.gz
Use HOME before /etc/passwd to find id_dropbear (#137)
Currently dbclient uses the value of HOME by default when looking for ~/.ssh/known_hosts, falling back to /etc/passwd if HOME is not set (so that people can work around broken values in /etc/passwd). However, when locating the default authentication key (defaults to ~/.ssh/id_dropbear), paths not starting with / are always prefixed with the value from /etc/passwd. Make the behaviour consistent by adjusting expand_homedir_path to use the value of HOME, falling back to /etc/passwd if HOME is not set.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions