summaryrefslogtreecommitdiff
path: root/sftp.1
diff options
context:
space:
mode:
authordjm@openbsd.org@openbsd.org <djm@openbsd.org@openbsd.org>2017-11-03 03:46:52 +0000
committerDamien Miller <djm@mindrot.org>2017-11-03 16:20:41 +1100
commitfbe8e7ac94c2fa380421a9205a8bc966549c2f91 (patch)
treef4045b45c8dcb4bf33df5aa96bde3d5ced4cac4a /sftp.1
parent0208a48517b5e8e8b091f32fa4addcd67c31ca9e (diff)
upstream commit
allow "cd" and "lcd" commands with no explicit path argument. lcd will change to the local user's home directory as usual. cd will change to the starting directory for session (because the protocol offers no way to obtain the remote user's home directory). bz#2760 ok dtucker@ OpenBSD-Commit-ID: 15333f5087cee8c1ed1330cac1bd0a3e6a767393
Diffstat (limited to 'sftp.1')
-rw-r--r--sftp.114
1 files changed, 10 insertions, 4 deletions
diff --git a/sftp.1 b/sftp.1
index 9b03280be..529be7fc6 100644
--- a/sftp.1
+++ b/sftp.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: sftp.1,v 1.112 2017/10/25 06:19:46 jmc Exp $ 1.\" $OpenBSD: sftp.1,v 1.113 2017/11/03 03:46:52 djm Exp $
2.\" 2.\"
3.\" Copyright (c) 2001 Damien Miller. All rights reserved. 3.\" Copyright (c) 2001 Damien Miller. All rights reserved.
4.\" 4.\"
@@ -22,7 +22,7 @@
22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24.\" 24.\"
25.Dd $Mdocdate: October 25 2017 $ 25.Dd $Mdocdate: November 3 2017 $
26.Dt SFTP 1 26.Dt SFTP 1
27.Os 27.Os
28.Sh NAME 28.Sh NAME
@@ -301,9 +301,12 @@ must be escaped with backslashes
301.It Ic bye 301.It Ic bye
302Quit 302Quit
303.Nm sftp . 303.Nm sftp .
304.It Ic cd Ar path 304.It Ic cd Op Ar path
305Change remote directory to 305Change remote directory to
306.Ar path . 306.Ar path .
307If
308.Ar path
309is not specified, then change directory to the one the session started in.
307.It Ic chgrp Ar grp Ar path 310.It Ic chgrp Ar grp Ar path
308Change group of file 311Change group of file
309.Ar path 312.Ar path
@@ -407,9 +410,12 @@ Note that
407does not follow symbolic links when performing recursive transfers. 410does not follow symbolic links when performing recursive transfers.
408.It Ic help 411.It Ic help
409Display help text. 412Display help text.
410.It Ic lcd Ar path 413.It Ic lcd Op Ar path
411Change local directory to 414Change local directory to
412.Ar path . 415.Ar path .
416If
417.Ar path
418is not specified, then change directory to the local user's home directory.
413.It Ic lls Op Ar ls-options Op Ar path 419.It Ic lls Op Ar ls-options Op Ar path
414Display local directory listing of either 420Display local directory listing of either
415.Ar path 421.Ar path