]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-ptutils-restricted-accessok-20081025
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 26 Oct 2008 07:51:37 +0000 (07:51 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 26 Oct 2008 07:51:37 +0000 (07:51 +0000)
LICENSE MIT

Fix restricted mode test when 'any' is not set on AccessOK

(cherry picked from commit a614a8d95476ae49642d055cb0ac7942109d021e)

src/ptserver/ptutils.c

index 3c2b83b695fe616953eb13ddd950867f34228b94..0b5bba49db81a9debd50813696a8c0b793497316 100644 (file)
@@ -294,7 +294,7 @@ AccessOK(struct ubik_trans *ut, afs_int32 cid,              /* caller id */
        return 1;
     if (cid == SYSADMINID)
        return 1;               /* special case fileserver */
-    if (restricted && ((mem == PRP_ADD_MEM) || (mem == any == 0)))
+    if (restricted && ((mem == PRP_ADD_MEM) || (mem == PRP_REMOVE_MEM)) && (any == 0))
        return 0;
     if (tentry) {
        flags = tentry->flags;