@@ -567,6 +567,10 @@ static void start_put(struct transfer_request *request)
567567 curl_easy_setopt (slot -> curl , CURLOPT_INFILE , & request -> buffer );
568568 curl_easy_setopt (slot -> curl , CURLOPT_INFILESIZE , request -> buffer .buf .len );
569569 curl_easy_setopt (slot -> curl , CURLOPT_READFUNCTION , fread_buffer );
570+ #ifndef NO_CURL_IOCTL
571+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLFUNCTION , ioctl_buffer );
572+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLDATA , & request -> buffer );
573+ #endif
570574 curl_easy_setopt (slot -> curl , CURLOPT_WRITEFUNCTION , fwrite_null );
571575 curl_easy_setopt (slot -> curl , CURLOPT_CUSTOMREQUEST , DAV_PUT );
572576 curl_easy_setopt (slot -> curl , CURLOPT_UPLOAD , 1 );
@@ -1266,6 +1270,10 @@ static struct remote_lock *lock_remote(const char *path, long timeout)
12661270 curl_easy_setopt (slot -> curl , CURLOPT_INFILE , & out_buffer );
12671271 curl_easy_setopt (slot -> curl , CURLOPT_INFILESIZE , out_buffer .buf .len );
12681272 curl_easy_setopt (slot -> curl , CURLOPT_READFUNCTION , fread_buffer );
1273+ #ifndef NO_CURL_IOCTL
1274+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLFUNCTION , ioctl_buffer );
1275+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLDATA , & out_buffer );
1276+ #endif
12691277 curl_easy_setopt (slot -> curl , CURLOPT_FILE , & in_buffer );
12701278 curl_easy_setopt (slot -> curl , CURLOPT_WRITEFUNCTION , fwrite_buffer );
12711279 curl_easy_setopt (slot -> curl , CURLOPT_URL , url );
@@ -1507,6 +1515,10 @@ static void remote_ls(const char *path, int flags,
15071515 curl_easy_setopt (slot -> curl , CURLOPT_INFILE , & out_buffer );
15081516 curl_easy_setopt (slot -> curl , CURLOPT_INFILESIZE , out_buffer .buf .len );
15091517 curl_easy_setopt (slot -> curl , CURLOPT_READFUNCTION , fread_buffer );
1518+ #ifndef NO_CURL_IOCTL
1519+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLFUNCTION , ioctl_buffer );
1520+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLDATA , & out_buffer );
1521+ #endif
15101522 curl_easy_setopt (slot -> curl , CURLOPT_FILE , & in_buffer );
15111523 curl_easy_setopt (slot -> curl , CURLOPT_WRITEFUNCTION , fwrite_buffer );
15121524 curl_easy_setopt (slot -> curl , CURLOPT_URL , url );
@@ -1583,6 +1595,10 @@ static int locking_available(void)
15831595 curl_easy_setopt (slot -> curl , CURLOPT_INFILE , & out_buffer );
15841596 curl_easy_setopt (slot -> curl , CURLOPT_INFILESIZE , out_buffer .buf .len );
15851597 curl_easy_setopt (slot -> curl , CURLOPT_READFUNCTION , fread_buffer );
1598+ #ifndef NO_CURL_IOCTL
1599+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLFUNCTION , ioctl_buffer );
1600+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLDATA , & out_buffer );
1601+ #endif
15861602 curl_easy_setopt (slot -> curl , CURLOPT_FILE , & in_buffer );
15871603 curl_easy_setopt (slot -> curl , CURLOPT_WRITEFUNCTION , fwrite_buffer );
15881604 curl_easy_setopt (slot -> curl , CURLOPT_URL , repo -> url );
@@ -1765,6 +1781,10 @@ static int update_remote(unsigned char *sha1, struct remote_lock *lock)
17651781 curl_easy_setopt (slot -> curl , CURLOPT_INFILE , & out_buffer );
17661782 curl_easy_setopt (slot -> curl , CURLOPT_INFILESIZE , out_buffer .buf .len );
17671783 curl_easy_setopt (slot -> curl , CURLOPT_READFUNCTION , fread_buffer );
1784+ #ifndef NO_CURL_IOCTL
1785+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLFUNCTION , ioctl_buffer );
1786+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLDATA , & out_buffer );
1787+ #endif
17681788 curl_easy_setopt (slot -> curl , CURLOPT_WRITEFUNCTION , fwrite_null );
17691789 curl_easy_setopt (slot -> curl , CURLOPT_CUSTOMREQUEST , DAV_PUT );
17701790 curl_easy_setopt (slot -> curl , CURLOPT_HTTPHEADER , dav_headers );
@@ -1909,6 +1929,10 @@ static void update_remote_info_refs(struct remote_lock *lock)
19091929 curl_easy_setopt (slot -> curl , CURLOPT_INFILE , & buffer );
19101930 curl_easy_setopt (slot -> curl , CURLOPT_INFILESIZE , buffer .buf .len );
19111931 curl_easy_setopt (slot -> curl , CURLOPT_READFUNCTION , fread_buffer );
1932+ #ifndef NO_CURL_IOCTL
1933+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLFUNCTION , ioctl_buffer );
1934+ curl_easy_setopt (slot -> curl , CURLOPT_IOCTLDATA , & buffer );
1935+ #endif
19121936 curl_easy_setopt (slot -> curl , CURLOPT_WRITEFUNCTION , fwrite_null );
19131937 curl_easy_setopt (slot -> curl , CURLOPT_CUSTOMREQUEST , DAV_PUT );
19141938 curl_easy_setopt (slot -> curl , CURLOPT_HTTPHEADER , dav_headers );
0 commit comments