curl -T: ignore file size of special files
original bug report at https://bugzilla.redhat.com/622520
This commit is contained in:
@@ -9,7 +9,7 @@ Curl and libcurl 7.21.2
|
|||||||
|
|
||||||
This release includes the following changes:
|
This release includes the following changes:
|
||||||
|
|
||||||
o
|
o curl -T: ignore file size of special files
|
||||||
|
|
||||||
This release includes the following bugfixes:
|
This release includes the following bugfixes:
|
||||||
|
|
||||||
|
|||||||
@@ -4925,6 +4925,9 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
|
|||||||
goto quit_urls;
|
goto quit_urls;
|
||||||
}
|
}
|
||||||
infdopen=TRUE;
|
infdopen=TRUE;
|
||||||
|
|
||||||
|
/* we ignore file size for char/block devices, sockets, etc. */
|
||||||
|
if(S_IFREG == (fileinfo.st_mode & S_IFMT))
|
||||||
uploadfilesize=fileinfo.st_size;
|
uploadfilesize=fileinfo.st_size;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user