git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
beef54e
)
fileserver-sticky-bit-admin-only-20080905
author
Derrick Brashear
<shadow@dementia.org>
Fri, 5 Sep 2008 17:57:33 +0000 (17:57 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Fri, 5 Sep 2008 17:57:33 +0000 (17:57 +0000)
LICENSE IPL10
do restrict the sticky bit to admins.
src/viced/afsfileprocs.c
patch
|
blob
|
history
diff --git
a/src/viced/afsfileprocs.c
b/src/viced/afsfileprocs.c
index
4ad5899
..
cd2e27e
100644
(file)
--- a/
src/viced/afsfileprocs.c
+++ b/
src/viced/afsfileprocs.c
@@
-1554,7
+1554,7
@@
Update_TargetVnodeStatus(Vnode * targetptr, afs_uint32 Caller,
#define CREATE_SGUID_ADMIN_ONLY 1
#ifdef CREATE_SGUID_ADMIN_ONLY
if (VanillaUser(client))
- modebits = modebits & 1777;
+ modebits = modebits & 0777;
#endif
if (VanillaUser(client)) {
targetptr->disk.modeBits = modebits;