diff options
author | djm@openbsd.org <djm@openbsd.org> | 2021-08-09 23:47:44 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2021-08-10 12:47:46 +1000 |
commit | 2ab864010e0a93c5dd95116fb5ceaf430e2fc23c (patch) | |
tree | 2851434ba4912fd244aa2e327580b606e86b159e /misc.h | |
parent | 41b019ac067f1d1f7d99914d0ffee4d2a547c3d8 (diff) |
upstream: SFTP protocol extension to allow the server to expand
~-prefixed paths, in particular ~user ones. Allows scp in sftp mode to accept
these paths, like scp in rcp mode does.
prompted by and much discussion deraadt@
ok markus@
OpenBSD-Commit-ID: 7d794def9e4de348e1e777f6030fc9bafdfff392
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.97 2021/06/08 06:54:40 djm Exp $ */ +/* $OpenBSD: misc.h,v 1.98 2021/08/09 23:47:44 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -71,6 +71,7 @@ int parse_user_host_port(const char *, char **, char **, int *); int parse_uri(const char *, const char *, char **, char **, int *, char **); int convtime(const char *); const char *fmt_timeframe(time_t t); +int tilde_expand(const char *, uid_t, char **); char *tilde_expand_filename(const char *, uid_t); char *dollar_expand(int *, const char *string, ...); |