diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-09-10 20:05:45 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-09-10 20:05:45 +0000 |
commit | 6cea51585fc82f3abc540abfc2068517fb804128 (patch) | |
tree | 9e589b31029ab992a0672b406b917f4e9549cc32 /lib/file.c | |
parent | fce9c3a9f16d4e789fadacfe276fe468f75d9d8a (diff) | |
download | curl-6cea51585fc82f3abc540abfc2068517fb804128.tar.gz |
Checked in some code improvements and minor fixes that I discovered in the
FreeBSD ports system.
Diffstat (limited to 'lib/file.c')
-rw-r--r-- | lib/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file.c b/lib/file.c index 6dd63b6a2..5e652001b 100644 --- a/lib/file.c +++ b/lib/file.c @@ -347,7 +347,7 @@ static CURLcode file_upload(struct connectdata *conn) /* 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; |