mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
parent
8a298119f1
commit
0bdb95ecbf
8 changed files with 27 additions and 19 deletions
|
|
@ -290,7 +290,7 @@ static int ProcessRequest(struct httprequest *req)
|
|||
req->testno, req->partno);
|
||||
logmsg("%s", logbuf);
|
||||
|
||||
stream = test2fopen(req->testno);
|
||||
stream = test2fopen(req->testno, logdir);
|
||||
|
||||
if(!stream) {
|
||||
int error = errno;
|
||||
|
|
@ -858,7 +858,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
|
|||
count = strlen(buffer);
|
||||
}
|
||||
else {
|
||||
FILE *stream = test2fopen(req->testno);
|
||||
FILE *stream = test2fopen(req->testno, logdir);
|
||||
char partbuf[80]="data";
|
||||
if(0 != req->partno)
|
||||
msnprintf(partbuf, sizeof(partbuf), "data%ld", req->partno);
|
||||
|
|
@ -884,7 +884,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
|
|||
}
|
||||
|
||||
/* re-open the same file again */
|
||||
stream = test2fopen(req->testno);
|
||||
stream = test2fopen(req->testno, logdir);
|
||||
if(!stream) {
|
||||
error = errno;
|
||||
logmsg("fopen() failed with error: %d %s", error, strerror(error));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue