git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
8a33059
)
ptutils-restricted-accessok-20081025
author
Jeffrey Altman
<jaltman@secure-endpoints.com>
Sun, 26 Oct 2008 07:50:39 +0000 (07:50 +0000)
committer
Jeffrey Altman
<jaltman@secure-endpoints.com>
Sun, 26 Oct 2008 07:50:39 +0000 (07:50 +0000)
LICENSE MIT
Fix restricted mode test when 'any' is not set on AccessOK
src/ptserver/ptutils.c
patch
|
blob
|
history
diff --git
a/src/ptserver/ptutils.c
b/src/ptserver/ptutils.c
index
8f17b69
..
61e07e9
100644
(file)
--- a/
src/ptserver/ptutils.c
+++ b/
src/ptserver/ptutils.c
@@
-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;