diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-12-05 09:02:47 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-12-05 09:02:47 +1100 |
commit | af1f90925494deba97a4b877798cf250f7dc75cf (patch) | |
tree | c6e44e388c2bd4ca0caad6ce9f422576fe650b57 /sftp.1 | |
parent | adab6f12992c522e1208fa2bdf89ce572840ccf8 (diff) |
- djm@cvs.openbsd.org 2010/12/04 00:18:01
[sftp-server.c sftp.1 sftp-client.h sftp.c PROTOCOL sftp-client.c]
add a protocol extension to support a hard link operation. It is
available through the "ln" command in the client. The old "ln"
behaviour of creating a symlink is available using its "-s" option
or through the preexisting "symlink" command; based on a patch from
miklos AT szeredi.hu in bz#1555; ok markus@
Diffstat (limited to 'sftp.1')
-rw-r--r-- | sftp.1 | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: sftp.1,v 1.87 2010/11/18 15:01:00 jmc Exp $ | 1 | .\" $OpenBSD: sftp.1,v 1.88 2010/12/04 00:18:01 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: November 18 2010 $ | 25 | .Dd $Mdocdate: December 4 2010 $ |
26 | .Dt SFTP 1 | 26 | .Dt SFTP 1 |
27 | .Os | 27 | .Os |
28 | .Sh NAME | 28 | .Sh NAME |
@@ -128,7 +128,7 @@ commands fail: | |||
128 | .Ic get , put , rename , ln , | 128 | .Ic get , put , rename , ln , |
129 | .Ic rm , mkdir , chdir , ls , | 129 | .Ic rm , mkdir , chdir , ls , |
130 | .Ic lchdir , chmod , chown , | 130 | .Ic lchdir , chmod , chown , |
131 | .Ic chgrp , lpwd , df , | 131 | .Ic chgrp , lpwd , df , symlink , |
132 | and | 132 | and |
133 | .Ic lmkdir . | 133 | .Ic lmkdir . |
134 | Termination on error can be suppressed on a command by command basis by | 134 | Termination on error can be suppressed on a command by command basis by |
@@ -392,11 +392,19 @@ characters and may match multiple files. | |||
392 | .It Ic lmkdir Ar path | 392 | .It Ic lmkdir Ar path |
393 | Create local directory specified by | 393 | Create local directory specified by |
394 | .Ar path . | 394 | .Ar path . |
395 | .It Ic ln Ar oldpath Ar newpath | 395 | .It Xo Ic ln |
396 | Create a symbolic link from | 396 | .Op Fl s |
397 | .Ar oldpath | ||
398 | .Ar newpath | ||
399 | .Xc | ||
400 | Create a link from | ||
397 | .Ar oldpath | 401 | .Ar oldpath |
398 | to | 402 | to |
399 | .Ar newpath . | 403 | .Ar newpath . |
404 | If the | ||
405 | .Fl s | ||
406 | flag is specified the created link is a symbolic link, otherwise it is | ||
407 | a hard link. | ||
400 | .It Ic lpwd | 408 | .It Ic lpwd |
401 | Print local working directory. | 409 | Print local working directory. |
402 | .It Xo Ic ls | 410 | .It Xo Ic ls |