diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2020-06-26 05:02:03 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-06-26 15:24:27 +1000 |
commit | 74344c3ca42c3f53b00b025daf09ae7f6aa38076 (patch) | |
tree | 4952081cdbd6c6f3e6e891cd09a7688f003ea639 /hostfile.h | |
parent | c9e24daac6324fcbdba171392c325bf9ccc3c768 (diff) |
upstream: Defer creation of ~/.ssh by ssh(1) until we attempt to
write to it so we don't leave an empty .ssh directory when it's not needed.
Use the same function to replace the code in ssh-keygen that does the same
thing. bz#3156, ok djm@
OpenBSD-Commit-ID: 59c073b569be1a60f4de36f491a4339bc4ae870f
Diffstat (limited to 'hostfile.h')
-rw-r--r-- | hostfile.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hostfile.h b/hostfile.h index 49fcbb7e8..de8b677e3 100644 --- a/hostfile.h +++ b/hostfile.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: hostfile.h,v 1.25 2020/05/13 09:52:41 djm Exp $ */ | 1 | /* $OpenBSD: hostfile.h,v 1.26 2020/06/26 05:02:03 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -106,4 +106,6 @@ typedef int hostkeys_foreach_fn(struct hostkey_foreach_line *l, void *ctx); | |||
106 | int hostkeys_foreach(const char *path, hostkeys_foreach_fn *callback, void *ctx, | 106 | int hostkeys_foreach(const char *path, hostkeys_foreach_fn *callback, void *ctx, |
107 | const char *host, const char *ip, u_int options); | 107 | const char *host, const char *ip, u_int options); |
108 | 108 | ||
109 | void hostfile_create_user_ssh_dir(const char *, int); | ||
110 | |||
109 | #endif | 111 | #endif |