]> Zhao Yanbai Git Server - minix.git/commitdiff
libsffs: return 64-bit value in st_size
authorBen Gras <ben@minix3.org>
Mon, 24 Feb 2014 16:41:05 +0000 (17:41 +0100)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:11 +0000 (17:05 +0200)
Change-Id: Ife7e590279e582a233f7cd95bf16ae2ac394d9c2

lib/libsffs/stat.c

index 0d01e6c428c19d546931fb0029807fc83874f11d..c9b8302231e173b376f6e6dce1adf8bd2d25f2cf 100644 (file)
@@ -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;