Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/fhandler/base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler/base.cc b/winsup/cygwin/fhandler/base.cc
index cdef01a2d..a57ffcb86 100644
--- a/winsup/cygwin/fhandler/base.cc
+++ b/winsup/cygwin/fhandler/base.cc
@@ -1140,7 +1140,7 @@ fhandler_base::lseek (off_t offset, int whence)
set_errno (ENXIO);
return -1;
}
- if (!pc.support_sparse ())
+ if (!has_attribute (FILE_ATTRIBUTE_SPARSE_FILE))
{
/* Default behaviour if sparse files are not supported:
SEEK_DATA: seek to offset