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)
This commit is contained in:
Chaskiel M Grundman 2006-01-17 17:06:42 +00:00 committed by Derrick Brashear
parent 39b8b95820
commit 6392ea2d49

View File

@ -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;
}