diff options
Diffstat (limited to 'ftp/curl/files/patch-lib::file.c')
-rw-r--r-- | ftp/curl/files/patch-lib::file.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ftp/curl/files/patch-lib::file.c b/ftp/curl/files/patch-lib::file.c new file mode 100644 index 000000000000..c7bae9693cbd --- /dev/null +++ b/ftp/curl/files/patch-lib::file.c @@ -0,0 +1,12 @@ +diff -urN -urN -x .svn ../../vendor/curl/lib/file.c ./lib/file.c +--- ../../vendor/curl/lib/file.c 2008-03-24 00:40:11.000000000 +0200 ++++ ./lib/file.c 2008-04-02 13:17:43.000000000 +0300 +@@ -344,7 +344,7 @@ + + /* treat the negative resume offset value as the case of "-" */ + if(data->state.resume_from < 0) { +- if(stat(file->path, &file_stat)) { ++ if(fstat(fileno(fp), &file_stat)) { + fclose(fp); + failf(data, "Can't get the size of %s", file->path); + return CURLE_WRITE_ERROR; |