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 /PROTOCOL | |
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 'PROTOCOL')
-rw-r--r-- | PROTOCOL | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -275,4 +275,20 @@ The values of the f_flag bitmask are as follows: | |||
275 | Both the "statvfs@openssh.com" and "fstatvfs@openssh.com" extensions are | 275 | Both the "statvfs@openssh.com" and "fstatvfs@openssh.com" extensions are |
276 | advertised in the SSH_FXP_VERSION hello with version "2". | 276 | advertised in the SSH_FXP_VERSION hello with version "2". |
277 | 277 | ||
278 | $OpenBSD: PROTOCOL,v 1.16 2010/08/31 11:54:45 djm Exp $ | 278 | 10. sftp: Extension request "hardlink@openssh.com" |
279 | |||
280 | This request is for creating a hard link to a regular file. This | ||
281 | request is implemented as a SSH_FXP_EXTENDED request with the | ||
282 | following format: | ||
283 | |||
284 | uint32 id | ||
285 | string "hardlink@openssh.com" | ||
286 | string oldpath | ||
287 | string newpath | ||
288 | |||
289 | On receiving this request the server will perform the operation | ||
290 | link(oldpath, newpath) and will respond with a SSH_FXP_STATUS message. | ||
291 | This extension is advertised in the SSH_FXP_VERSION hello with version | ||
292 | "1". | ||
293 | |||
294 | $OpenBSD: PROTOCOL,v 1.17 2010/12/04 00:18:01 djm Exp $ | ||