diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-01-25 00:21:08 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-01-25 11:35:56 +1100 |
commit | 7955633a554397bc24913cec9fd7285002935f7e (patch) | |
tree | 94808f0b095cf811cf322a432e9f20e84660b0f2 /ssh.c | |
parent | e5a278a62ab49dffe96929fa8d8506c6928dba90 (diff) |
upstream: allow UpdateKnownHosts=yes to function when multiple
known_hosts files are in use. When updating host keys, ssh will now search
subsequent known_hosts files, but will add new/changed host keys to the first
specified file only. bz#2738
ok markus@
OpenBSD-Commit-ID: 6ded6d878a03e57d5aa20bab9c31f92e929dbc6c
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.514 2020/01/25 00:03:36 djm Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.515 2020/01/25 00:21:08 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1248,7 +1248,7 @@ main(int ac, char **av) | |||
1248 | strcmp(options.proxy_command, "-") == 0 && | 1248 | strcmp(options.proxy_command, "-") == 0 && |
1249 | options.proxy_use_fdpass) | 1249 | options.proxy_use_fdpass) |
1250 | fatal("ProxyCommand=- and ProxyUseFDPass are incompatible"); | 1250 | fatal("ProxyCommand=- and ProxyUseFDPass are incompatible"); |
1251 | if (options.control_persist && | 1251 | if (options.control_persist && options.control_path != NULL && |
1252 | options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK) { | 1252 | options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK) { |
1253 | debug("UpdateHostKeys=ask is incompatible with ControlPersist; " | 1253 | debug("UpdateHostKeys=ask is incompatible with ControlPersist; " |
1254 | "disabling"); | 1254 | "disabling"); |