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:
authorCorinna Vinschen <corinna@vinschen.de>2023-08-09 17:56:40 +0300
committerCorinna Vinschen <corinna@vinschen.de>2023-08-09 17:56:40 +0300
commitb6fbe0fc2e062e6f0d155009da235574e39dbbe2 (patch)
tree500a688a80695d54638f09d8f9762ceebb32461b /winsup
parent5b53633b5dd02adf7b2b00ac0b69906e4ea3ffe6 (diff)
Cygwin: lseek: propagate new SEEK_DATA and SEEK_HOLE to fhandler
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-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;