From 9805b8031206c5090192247e500f6ce8637da60e Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 21 Jun 2005 21:19:24 +0000 Subject: [PATCH] STABLE14-lock-client-around-acl-checkrights-20050618 FIXES 1345 one of the like 3 crashes there. thanks love (cherry picked from commit f16d1cef70e138b71a04d9c71ab067a1dc947867) --- src/viced/afsfileprocs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 4dab214e3..6dfb139aa 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; -- 2.39.5