]> granicus.if.org Git - curl/commit
file: try reading from files with no size
authorDaniel Stenberg <daniel@haxx.se>
Thu, 25 Feb 2016 22:45:17 +0000 (23:45 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Feb 2016 22:45:17 +0000 (23:45 +0100)
commit1e486db9c24354c71036c3e4f1de5454dc249270
treef52fa1b6ad7f9a753ad6a0d2a44dc16861be372a
parent3ae77f079a4a0ea61013a8bde298db99fa74a1b3
file: try reading from files with no size

Some systems have special files that report as 0 bytes big, but still
contain data that can be read (for example /proc/cpuinfo on
Linux). Starting now, a zero byte size is considered "unknown" size and
will be read as far as possible anyway.

Reported-by: Jesse Tan
Closes #681
lib/file.c