cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SFTP patch for touch

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Mar 2008 12:44:14 +0100 (CET)

On Thu, 20 Mar 2008, Vincent Le Normand wrote:

> I needed a command to change the modification date of a file on a sftp
> server (using QUOTE).
>
> I have quickly implemented a "touch" quote command for SFTP.

Nice.

We should possibly try to somehow get an idea about what commands we want to
allow as SFTP quote commands just so that we don't open this for an endless
amount of new commands getting added. But I don't know how...

> The patch is here (for ssh.c file):
> This is my first patch, so please be indulgent.

Please make patches with 'diff -u' to make them much easier to apply, and
please fix the "// TODO" line. The C++/C99 comment is not allowed, and what
exactly is it that should be done?

> The syntax is the following:

I was gonna ask you to add this to the man page properly, but I can see how we
need to make a proper section in the man page for the SFTP quote commands as
they're currently just listed by name and not at all described what to expect
of them or what syntax to use...

> If you have a better idea for a command name, you're welcome.

touch certainly works for me!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-03-20