fish.c, xdirentry.h: Fix 2 GB file size limit for fish.
Этот коммит содержится в:
родитель
b2e8006823
Коммит
a03c48ffa4
@ -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>
|
2006-01-27 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
* utilvfs.c (is_year): The range of valid year numbers is
|
* utilvfs.c (is_year): The range of valid year numbers is
|
||||||
|
@ -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);
|
if (offset != PRELIM) ERRNOR (E_REMOTE, 0);
|
||||||
fh->linear = LS_LINEAR_OPEN;
|
fh->linear = LS_LINEAR_OPEN;
|
||||||
fh->u.fish.got = 0;
|
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);
|
ERRNOR (E_REMOTE, 0);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,8 @@ struct vfs_s_fh {
|
|||||||
int linear; /* Is that file open with O_LINEAR? */
|
int linear; /* Is that file open with O_LINEAR? */
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
int got, total, append;
|
off_t got, total;
|
||||||
|
int append;
|
||||||
} fish;
|
} fish;
|
||||||
struct {
|
struct {
|
||||||
int sock, append;
|
int sock, append;
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user