mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
DEVEL15-ptutils-restricted-accessok-20081025
LICENSE MIT Fix restricted mode test when 'any' is not set on AccessOK (cherry picked from commit a614a8d95476ae49642d055cb0ac7942109d021e)
This commit is contained in:
parent
ed49857908
commit
9107fc7661
@ -294,7 +294,7 @@ AccessOK(struct ubik_trans *ut, afs_int32 cid, /* caller id */
|
|||||||
return 1;
|
return 1;
|
||||||
if (cid == SYSADMINID)
|
if (cid == SYSADMINID)
|
||||||
return 1; /* special case fileserver */
|
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;
|
return 0;
|
||||||
if (tentry) {
|
if (tentry) {
|
||||||
flags = tentry->flags;
|
flags = tentry->flags;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user