[PATCH] Adds support for SSH_FXP_LINK request to sftp-server and sftp client

Daniele Calore orkaan at orkaan.org
Wed May 9 01:13:39 EST 2007


Hi,

> Attached is a patch that adds support for the SSH_FXP_LINK request, as
> described in draft-ietf-secsh-filexfer-07 onwards, to the sftp server
> and client.

The "standard" for OpenSSH is draft-ietf-secsh-filexfer-03

$ grep FILEXFER_VERSION sftp.h
#define SSH2_FILEXFER_VERSION           3

I have tried the patch and it works.
But only if the client/server has the same patch installed.

There is a check inside the patch (sftp-client.c):

+ if (conn->version < 3) {
+     error("This server does not support the link operation");
+     return(SSH2_FX_OP_UNSUPPORTED);
+ }

A non patched server has version "3" (see sftp.h) but
it does not support the new link operation...

- Solutions:
1- Upgrade define SSH2_FILEXFER_VERSION to 4 ???
   (and also update the check)
2- Any other suggestion ???

- A question:
Does the patch will be included in the next stable release of OpenSSH?


Bye,

--
Daniele Calore ( orkaan at orkaan.org )


More information about the openssh-unix-dev mailing list