diff options
author | Jeremy Drake <cygwin@jdrake.com> | 2025-08-18 12:48:18 -0700 |
---|---|---|
committer | Jeremy Drake <cygwin@jdrake.com> | 2025-08-18 17:14:18 -0700 |
commit | fb0a539efa0278fd18915fc072bc30b4851a9b75 (patch) | |
tree | aeb2432c5cd239e7c4a06e0bc8aa7d77ecbf503a | |
parent | 880c96576b2423d1e77e25a3a2da7fc761377728 (diff) | |
download | newlib-fb0a539efa0278fd18915fc072bc30b4851a9b75.zip newlib-fb0a539efa0278fd18915fc072bc30b4851a9b75.tar.gz newlib-fb0a539efa0278fd18915fc072bc30b4851a9b75.tar.bz2 |
Cygwin: fix fcntl F_GETLK
The commit implementing OFD locks dropped the F_GETLK case from the
switch in fhandler_base::lock, replacing it with F_OFD_GETLK. This
appears to have been an oversight, as F_OFD_SETLK was added as an
additional case above.
This resulted in the winsup.api/ltp/fcntl05 test failing.
Fixes: a66ed519884d ("Cygwin: fcntl: implement Open File Description (OFD) locks")
Signed-off-by: Jeremy Drake <cygwin@jdrake.com>
-rw-r--r-- | winsup/cygwin/flock.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/flock.cc b/winsup/cygwin/flock.cc index 85800e9..e9f49a8 100644 --- a/winsup/cygwin/flock.cc +++ b/winsup/cygwin/flock.cc @@ -1162,6 +1162,7 @@ restart: /* Entry point after a restartable signal came in. */ clean = lock; break; + case F_GETLK: case F_OFD_GETLK: error = lf_getlock (lock, node, fl); lock->lf_next = clean; |