diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-01-16 23:23:45 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-01-17 11:08:13 +1100 |
commit | 60d8c84e0887514c99c9ce071965fafaa1c3d34a (patch) | |
tree | 771daf5a0f48b41115daf2b9b552e4e6d10dba7d /sftp-client.h | |
parent | dbbc7e0eab7262f34b8e0cd6efecd1c77b905ed0 (diff) | |
download | openssh-git-60d8c84e0887514c99c9ce071965fafaa1c3d34a.tar.gz |
upstream: Add "-h" flag to sftp chown/chgrp/chmod commands to
request they do not follow symlinks. Requires recently-committed
lsetstat@openssh.com extension on the server side.
ok markus@ dtucker@
OpenBSD-Commit-ID: f93bb3f6f7eb2fb7ef1e59126e72714f1626d604
Diffstat (limited to 'sftp-client.h')
-rw-r--r-- | sftp-client.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sftp-client.h b/sftp-client.h index 14a3b818..63a9b8b1 100644 --- a/sftp-client.h +++ b/sftp-client.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp-client.h,v 1.27 2015/05/08 06:45:13 djm Exp $ */ +/* $OpenBSD: sftp-client.h,v 1.28 2019/01/16 23:23:45 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> @@ -91,6 +91,9 @@ int do_setstat(struct sftp_conn *, const char *, Attrib *); /* Set file attributes of open file 'handle' */ int do_fsetstat(struct sftp_conn *, const u_char *, u_int, Attrib *); +/* Set file attributes of 'path', not following symlinks */ +int do_lsetstat(struct sftp_conn *conn, const char *path, Attrib *a); + /* Canonicalise 'path' - caller must free result */ char *do_realpath(struct sftp_conn *, const char *); |