git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
63ea4ee
)
pts-sysviewer-should-be-able-to-listowned-20020521
author
Chaskiel M Grundman
<cg2v@andrew.cmu.edu>
Tue, 21 May 2002 06:30:27 +0000 (06:30 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Tue, 21 May 2002 06:30:27 +0000 (06:30 +0000)
fix so the "any reader" can really read anythinmg
src/ptserver/ptutils.c
patch
|
blob
|
history
diff --git
a/src/ptserver/ptutils.c
b/src/ptserver/ptutils.c
index
6b9d52f
..
c742867
100644
(file)
--- a/
src/ptserver/ptutils.c
+++ b/
src/ptserver/ptutils.c
@@
-180,7
+180,9
@@
int AccessOK (ut, cid, tentry, mem, any)
if ((flags & mem) && IsAMemberOf (ut, cid, aid)) return 1;
}
/* Allow members of SYSVIEWERID to get membership and status only */
- if (((mem == PRP_STATUS_MEM)||(mem == PRP_MEMBER_MEM))&&(IsAMemberOf (ut, cid, SYSVIEWERID))) return 1;
+ if (((mem == PRP_STATUS_MEM)||(mem == PRP_MEMBER_MEM)||
+ (any == PRP_OWNED_ANY))&&(IsAMemberOf (ut, cid, SYSVIEWERID)))
+ return 1;
if (IsAMemberOf (ut, cid, SYSADMINID)) return 1;
return 0; /* no access */
}