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
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 04907b991..e4b3dd2f3 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1559,7 +1559,7 @@ lseek (int fd, off_t pos, int dir)
{
off_t res;
- if (dir != SEEK_SET && dir != SEEK_CUR && dir != SEEK_END)
+ if (dir < SEEK_SET || dir > SEEK_HOLE)
{
set_errno (EINVAL);
res = -1;