diff options
author | djm@openbsd.org@openbsd.org <djm@openbsd.org@openbsd.org> | 2017-11-03 04:46:52 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-11-03 06:20:41 +0100 |
commit | fbe8e7ac94c2fa380421a9205a8bc966549c2f91 (patch) | |
tree | f4045b45c8dcb4bf33df5aa96bde3d5ced4cac4a /sftp.1 | |
parent | upstream commit (diff) | |
download | openssh-fbe8e7ac94c2fa380421a9205a8bc966549c2f91.tar.xz openssh-fbe8e7ac94c2fa380421a9205a8bc966549c2f91.zip |
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.1 | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,4 +1,4 @@ -.\" $OpenBSD: sftp.1,v 1.112 2017/10/25 06:19:46 jmc Exp $ +.\" $OpenBSD: sftp.1,v 1.113 2017/11/03 03:46:52 djm Exp $ .\" .\" Copyright (c) 2001 Damien Miller. All rights reserved. .\" @@ -22,7 +22,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: October 25 2017 $ +.Dd $Mdocdate: November 3 2017 $ .Dt SFTP 1 .Os .Sh NAME @@ -301,9 +301,12 @@ must be escaped with backslashes .It Ic bye Quit .Nm sftp . -.It Ic cd Ar path +.It Ic cd Op Ar path Change remote directory to .Ar path . +If +.Ar path +is not specified, then change directory to the one the session started in. .It Ic chgrp Ar grp Ar path Change group of file .Ar path @@ -407,9 +410,12 @@ Note that does not follow symbolic links when performing recursive transfers. .It Ic help Display help text. -.It Ic lcd Ar path +.It Ic lcd Op Ar path Change local directory to .Ar path . +If +.Ar path +is not specified, then change directory to the local user's home directory. .It Ic lls Op Ar ls-options Op Ar path Display local directory listing of either .Ar path |