diff options
author | Christopher Faylor <me@cgf.cx> | 2000-07-27 14:26:03 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-07-27 14:26:03 +0000 |
commit | 6864e5d7b4fe96c74f4d5f2a7c146291fafc1c06 (patch) | |
tree | 85b247294d5dbcac8438ba36c9547808702ec355 /winsup/cygwin/fhandler.cc | |
parent | f90b3fcd98def53f617d4fef5d361a349b33be68 (diff) | |
download | cygnal-6864e5d7b4fe96c74f4d5f2a7c146291fafc1c06.tar.gz cygnal-6864e5d7b4fe96c74f4d5f2a7c146291fafc1c06.tar.bz2 cygnal-6864e5d7b4fe96c74f4d5f2a7c146291fafc1c06.zip |
* fhandler.cc (fhandler_disk_file::fstat): Allow block calculation to succeed
for files >= 2GB and <= 4GB.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 35da0d8fd..fc1451c68 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -946,7 +946,7 @@ fhandler_disk_file::fstat (struct stat *buf) } buf->st_blksize = S_BLKSIZE; - buf->st_blocks = (buf->st_size + S_BLKSIZE-1) / S_BLKSIZE; + buf->st_blocks = ((unsigned long) buf->st_size + S_BLKSIZE-1) / S_BLKSIZE; /* Using a side effect: get_file_attibutes checks for directory. This is used, to set S_ISVTX, if needed. */ |