From: Derrick Brashear Date: Sun, 19 Jun 2005 00:22:31 +0000 (+0000) Subject: lock-client-around-acl-checkrights-20050618 X-Git-Tag: openafs-devel-1_5_0~495 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=f16d1cef70e138b71a04d9c71ab067a1dc947867 lock-client-around-acl-checkrights-20050618 FIXES 1345 one of the like 3 crashes there. thanks love --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 4dab214..6dfb139 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -594,7 +594,10 @@ GetRights(struct client *client, struct acl_accessList *ACL, *anyrights = 0; } *rights = 0; + + ObtainWriteLock(&client->lock); acl_CheckRights(ACL, &client->CPS, rights); + ReleaseWriteLock(&client->lock); /* wait if somebody else is already doing the getCPS call */ H_LOCK;