mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
curl -T: ignore file size of special files
original bug report at https://bugzilla.redhat.com/622520
This commit is contained in:
parent
72da720b4a
commit
5907777153
@ -9,7 +9,7 @@ Curl and libcurl 7.21.2
|
||||
|
||||
This release includes the following changes:
|
||||
|
||||
o
|
||||
o curl -T: ignore file size of special files
|
||||
|
||||
This release includes the following bugfixes:
|
||||
|
||||
|
@ -4925,7 +4925,10 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
|
||||
goto quit_urls;
|
||||
}
|
||||
infdopen=TRUE;
|
||||
uploadfilesize=fileinfo.st_size;
|
||||
|
||||
/* we ignore file size for char/block devices, sockets, etc. */
|
||||
if(S_IFREG == (fileinfo.st_mode & S_IFMT))
|
||||
uploadfilesize=fileinfo.st_size;
|
||||
|
||||
}
|
||||
else if(uploadfile && stdin_upload(uploadfile)) {
|
||||
|
Loading…
Reference in New Issue
Block a user