update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7348 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
dbd4cfffe9
commit
533600180b
|
@ -2436,7 +2436,7 @@ static JSBool js_fetchurl_file(JSContext * cx, JSObject * obj, uintN argc, jsval
|
||||||
config_data.obj = obj;
|
config_data.obj = obj;
|
||||||
|
|
||||||
config_data.name = filename;
|
config_data.name = filename;
|
||||||
if ((config_data.fd = open(filename, O_CREAT | O_RDWR | O_TRUNC)) > -1) {
|
if ((config_data.fd = open(filename, O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR)) > -1) {
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_URL, url);
|
curl_easy_setopt(curl_handle, CURLOPT_URL, url);
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, file_callback);
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, file_callback);
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) &config_data);
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) &config_data);
|
||||||
|
|
Loading…
Reference in New Issue