From: Ben Gras Date: Mon, 24 Feb 2014 16:41:05 +0000 (+0100) Subject: libsffs: return 64-bit value in st_size X-Git-Tag: v3.3.0~420 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/rndc.html?a=commitdiff_plain;h=e4ab5378cb0a228aa5dc6c555dde7999cb753a60;p=minix.git libsffs: return 64-bit value in st_size Change-Id: Ife7e590279e582a233f7cd95bf16ae2ac394d9c2 --- diff --git a/lib/libsffs/stat.c b/lib/libsffs/stat.c index 0d01e6c42..c9b830223 100644 --- a/lib/libsffs/stat.c +++ b/lib/libsffs/stat.c @@ -68,10 +68,7 @@ int do_stat(void) stat.st_uid = sffs_params->p_uid; stat.st_gid = sffs_params->p_gid; stat.st_rdev = NO_DEV; - if (attr.a_size > LONG_MAX) - stat.st_size = LONG_MAX; - else - stat.st_size = ex64lo(attr.a_size); + stat.st_size = attr.a_size; stat.st_atimespec = attr.a_atime; stat.st_mtimespec = attr.a_mtime; stat.st_ctimespec = attr.a_ctime;