diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index ea5f1e49e..4e0a85554 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.276 2015/07/03 03:49:45 djm Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.277 2015/08/19 23:17:51 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1201,7 +1201,8 @@ do_known_hosts(struct passwd *pw, const char *name) | |||
1201 | exit(1); | 1201 | exit(1); |
1202 | } else if (delete_host && !ctx.found_key) { | 1202 | } else if (delete_host && !ctx.found_key) { |
1203 | logit("Host %s not found in %s", name, identity_file); | 1203 | logit("Host %s not found in %s", name, identity_file); |
1204 | unlink(tmp); | 1204 | if (inplace) |
1205 | unlink(tmp); | ||
1205 | } else if (inplace) { | 1206 | } else if (inplace) { |
1206 | /* Backup existing file */ | 1207 | /* Backup existing file */ |
1207 | if (unlink(old) == -1 && errno != ENOENT) | 1208 | if (unlink(old) == -1 && errno != ENOENT) |