[PATCH] curl -T: ignore file size of special files
Date: Thu, 12 Aug 2010 21:58:37 +0200
attached is a simple patch for the curl tool, to ignore file size
of special files when uploading. With the patch applied, it's possible
to upload the content of a block device by passing the file directly to
the -T option and curl does not return CURLE_PARTIAL_FILE. The other
consequence is that curl honestly refuses to upload the content of a block
device by SCP, instead of silently creating an empty file on server.
More details are available at https://bugzilla.redhat.com/622520
Any feedback welcome!
- text/x-diff attachment: 0001-curl-T-ignore-file-size-of-special-files.patch