From: Derrick Brashear Date: Fri, 5 Sep 2008 17:58:05 +0000 (+0000) Subject: STABLE14-fileserver-sticky-bit-admin-only-20080905 X-Git-Tag: openafs-stable-1_4_8pre1~12 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=398f676fc1bede8029e61bd37058be6922a43d3b;p=packages%2Fo%2Fopenafs.git STABLE14-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 7464e295e..c59f7a0d8 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -1573,7 +1573,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;