aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorJames Housley <jim@thehousleys.net>2007-06-27 20:15:48 +0000
committerJames Housley <jim@thehousleys.net>2007-06-27 20:15:48 +0000
commit4cd7f85410ae9590fa4dd274a9c77604b3b8d4fc (patch)
treefd45dc75b67be9ca91e816485e959eb1fceb8621 /lib/urldata.h
parentedd35cab5cbe0872b19b98936b58e4941c93de12 (diff)
Add two new options for the SFTP/SCP/FILE protocols: CURLOPT_NEW_FILE_PERMS
and CURLOPT_NEW_DIRECTORY_PERMS. These control the premissions for files and directories created on the remote server. CURLOPT_NEW_FILE_PERMS defaults to 0644 and CURLOPT_NEW_DIRECTORY_PERMS defaults to 0755
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index f52f96fbd..bd012b817 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1356,6 +1356,8 @@ struct UserDefined {
transfer-encoded (chunked, compressed) */
bool http_ce_skip; /* pass the raw body data to the user, even when
content-encoded (chunked, compressed) */
+ long new_file_perms; /* Permissions to use when creating remote files */
+ long new_directory_perms; /* Permissions to use when creating remote dirs */
};
struct Names {