From: Derrick Brashear Date: Fri, 5 Sep 2008 17:57:55 +0000 (+0000) Subject: DEVEL15-fileserver-sticky-bit-admin-only-20080905 X-Git-Tag: openafs-devel-1_5_53~46 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0984dae857e93d981122224e71539d6e2192264b;p=packages%2Fo%2Fopenafs.git DEVEL15-fileserver-sticky-bit-admin-only-20080905 LICENSE IPL10 do restrict the sticky bit to admins. (cherry picked from commit 5c2406070fc08c5fee0a09a1aa25e16af123b81a) --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 4ad5899be..cd2e27ec0 100644 --- 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;