diff options
author | James Housley <jim@thehousleys.net> | 2007-06-27 20:15:48 +0000 |
---|---|---|
committer | James Housley <jim@thehousleys.net> | 2007-06-27 20:15:48 +0000 |
commit | 4cd7f85410ae9590fa4dd274a9c77604b3b8d4fc (patch) | |
tree | fd45dc75b67be9ca91e816485e959eb1fceb8621 /lib/easy.c | |
parent | edd35cab5cbe0872b19b98936b58e4941c93de12 (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/easy.c')
-rw-r--r-- | lib/easy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c index d5816bc48..5c8d6bb3e 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -731,6 +731,8 @@ void curl_easy_reset(CURL *curl) data->set.ssh_auth_types = CURLSSH_AUTH_DEFAULT; /* defaults to any auth type */ + data->set.new_file_perms = 0644; /* Default permissions */ + data->set.new_directory_perms = 0755; /* Default permissions */ } #ifdef CURL_DOES_CONVERSIONS |