Added support for quote commands before a transfer using SFTP and test

case 614.
Allow SFTP quote commands chmod, chown, chgrp to set a value of 0.
This commit is contained in:
Dan Fandrich
2007-05-15 00:28:50 +00:00
parent b0a4c992e7
commit ea43bb013b
7 changed files with 102 additions and 33 deletions

View File

@@ -897,17 +897,17 @@ file will not be read and used. See the \fI-K/--config\fP for details on the
default config file search path.
.IP "-Q/--quote <command>"
(FTP/SFTP) Send an arbitrary command to the remote FTP or SFTP server. Quote
commands are
sent BEFORE the transfer is taking place (just after the initial PWD command
to be exact). To make commands take place after a successful transfer, prefix
them with a dash '-' (only the latter is supported with SFTP). To make
commands get sent after libcurl has changed working directory, just
before the transfer command(s), prefix the command with '+'. You may
specify any amount of commands. If the server returns failure for one
of the commands, the entire operation will be aborted. You must send
syntactically correct FTP commands as RFC959 defines to FTP servers, or
one of the following commands (with appropriate arguments) to SFTP servers:
chgrp, chmod, chown, ln, mkdir, rename, rm, rmdir, symlink.
commands are sent BEFORE the transfer is taking place (just after the
initial PWD command in an FTP transfer, to be exact). To make commands
take place after a successful transfer, prefix them with a dash '-'.
To make commands get sent after libcurl has changed working directory,
just before the transfer command(s), prefix the command with '+' (this
is only supported for FTP). You may specify any number of commands. If
the server returns failure for one of the commands, the entire operation
will be aborted. You must send syntactically correct FTP commands as
RFC959 defines to FTP servers, or one of the following commands (with
appropriate arguments) to SFTP servers: chgrp, chmod, chown, ln, mkdir,
rename, rm, rmdir, symlink.
This option can be used multiple times.
.IP "--random-file <file>"