libsffs: return 64-bit value in st_size

Change-Id: Ife7e590279e582a233f7cd95bf16ae2ac394d9c2
This commit is contained in:
Ben Gras 2014-02-24 17:41:05 +01:00 committed by Lionel Sambuc
parent 273c51a7d1
commit e4ab5378cb

View file

@ -68,10 +68,7 @@ int do_stat(void)
stat.st_uid = sffs_params->p_uid; stat.st_uid = sffs_params->p_uid;
stat.st_gid = sffs_params->p_gid; stat.st_gid = sffs_params->p_gid;
stat.st_rdev = NO_DEV; stat.st_rdev = NO_DEV;
if (attr.a_size > LONG_MAX) stat.st_size = attr.a_size;
stat.st_size = LONG_MAX;
else
stat.st_size = ex64lo(attr.a_size);
stat.st_atimespec = attr.a_atime; stat.st_atimespec = attr.a_atime;
stat.st_mtimespec = attr.a_mtime; stat.st_mtimespec = attr.a_mtime;
stat.st_ctimespec = attr.a_ctime; stat.st_ctimespec = attr.a_ctime;