fish.c, xdirentry.h: Fix 2 GB file size limit for fish.

This commit is contained in:
Leonard den Ottolander 2006-01-27 22:16:45 +00:00
parent b2e8006823
commit a03c48ffa4
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-01-27 Thomas Liske <tholi@fsr.et.tu-dresden.de>
* fish.c, xdirentry.h: Fix 2 GB file size limit for fish.
2006-01-27 Roland Illig <roland.illig@gmx.de>
* utilvfs.c (is_year): The range of valid year numbers is

View File

@ -611,7 +611,7 @@ fish_linear_start (struct vfs_class *me, struct vfs_s_fh *fh, off_t offset)
if (offset != PRELIM) ERRNOR (E_REMOTE, 0);
fh->linear = LS_LINEAR_OPEN;
fh->u.fish.got = 0;
if (sscanf( reply_str, "%d", &fh->u.fish.total )!=1)
if (sscanf( reply_str, "%Lu", &fh->u.fish.total )!=1)
ERRNOR (E_REMOTE, 0);
return 1;
}

View File

@ -106,7 +106,8 @@ struct vfs_s_fh {
int linear; /* Is that file open with O_LINEAR? */
union {
struct {
int got, total, append;
off_t got, total;
int append;
} fish;
struct {
int sock, append;