cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] curl -T: ignore file size of special files

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Thu, 12 Aug 2010 21:58:37 +0200

Hello,

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!

Kamil

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-08-12