Cygwin: lseek: propagate new SEEK_DATA and SEEK_HOLE to fhandler

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-08-09 16:56:40 +02:00
parent 5b53633b5d
commit b6fbe0fc2e
1 changed files with 1 additions and 1 deletions

View File

@ -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;