Fix for stacking locks in brlock and POSIX. Windows only allows a read lock
authorJeremy Allison <jra@samba.org>
Wed, 3 May 2000 02:27:41 +0000 (02:27 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 3 May 2000 02:27:41 +0000 (02:27 +0000)
commit20ce61ccc88dd3868176932736e03e4d85f1bfd0
tree037d1b145978eaccf3e1f55f6b006a31bd086bcd
parent37a6e44ad846598aedc8cb7306c1aef86d930756
Fix for stacking locks in brlock and POSIX. Windows only allows a read lock
to overlay a write lock on the same fnum. When overlaying read locks onto
a write lock, the number of locks is counted, and the first unlock removes
the write lock and downgrades this to a read lock. Do the same when mapping
to POSIX.
Jeremy.
(This used to be commit 74d42644e6e52808037975e909aa56c850838b76)
source3/locking/brlock.c
source3/locking/posix.c