]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: lockf: Fix adding a new lock over multiple locks
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Sat, 19 Oct 2024 15:59:51 +0000 (00:59 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Thu, 31 Oct 2024 06:34:32 +0000 (15:34 +0900)
commitf9cc21dc001acc2c90cfdb170c4bdd50f76770ea
tree991256e208b62c5266a9e51fedc27096c815ee3e
parent5e6eb2f200ce1c3ae7ae25140074bd37bc440aae
Cygwin: lockf: Fix adding a new lock over multiple locks

Previously, adding a new lock by lockf() over multiple existing locks
failed. This is due to a bug that lf_setlock() tries to create a lock
that has already been created. This patch fixes the issue.

Addresses: https://cygwin.com/pipermail/cygwin/2024-October/256528.html
Fixes: a998dd705576 ("* flock.cc: Implement all advisory file locking here.")
Reported-by: Christian Franke <Christian.Franke@t-online.de>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/flock.cc
winsup/cygwin/release/3.5.5
This page took 0.030616 seconds and 5 git commands to generate.