From 6392ea2d492b84ccfaeb10ebe38ae4f2d035d79d Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Tue, 17 Jan 2006 17:06:42 +0000 Subject: [PATCH] STABLE14-macos-locking-behavior-20060117 FIXES 25543 F_UNLCK is send as a command, remap to F_SETLK like everyone else (cherry picked from commit b81d0cf8af1c5788de399b630545945004f65345) --- src/afs/DARWIN/osi_vnodeops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5