From 4cd7f85410ae9590fa4dd274a9c77604b3b8d4fc Mon Sep 17 00:00:00 2001 From: James Housley Date: Wed, 27 Jun 2007 20:15:48 +0000 Subject: 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 --- lib/easy.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/easy.c') 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 -- cgit v1.2.3