From: Chaskiel M Grundman Date: Tue, 17 Jan 2006 17:05:31 +0000 (+0000) Subject: macos-locking-behavior-20060117 X-Git-Tag: openafs-devel-1_5_0~98 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b81d0cf8af1c5788de399b630545945004f65345;p=packages%2Fo%2Fopenafs.git macos-locking-behavior-20060117 FIXES 25543 F_UNLCK is send as a command, remap to F_SETLK like everyone else --- diff --git a/src/afs/DARWIN/osi_vnodeops.c b/src/afs/DARWIN/osi_vnodeops.c index 951565063..258fbdad8 100644 --- a/src/afs/DARWIN/osi_vnodeops.c +++ b/src/afs/DARWIN/osi_vnodeops.c @@ -1727,7 +1727,9 @@ afs_vop_advlock(ap) #endif AFS_GLOCK(); error = - afs_lockctl(VTOAFS(ap->a_vp), ap->a_fl, ap->a_op, tcr, (int)ap->a_id); + afs_lockctl(VTOAFS(ap->a_vp), ap->a_fl, + ap->a_op == F_UNLCK ? F_SETLK : ap->a_op, tcr, + (int)ap->a_id); AFS_GUNLOCK(); return error; }