From: Derrick Brashear Date: Thu, 4 Sep 2008 20:41:36 +0000 (+0000) Subject: STABLE14-fileserver-sticky-bit-not-admin-only-20080904 X-Git-Tag: openafs-stable-1_4_8pre1~13 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bceaa3b02789febe44b81f3987a50d377d0bff1a;p=packages%2Fo%2Fopenafs.git STABLE14-fileserver-sticky-bit-not-admin-only-20080904 LICENSE IPL10 don't restrict the sticky bit to admins. (cherry picked from commit 9689e78d716422970a0ae3ad89d36acaa517072e) --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index c59f7a0d8..7464e295e 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 & 0777; + modebits = modebits & 1777; #endif if (VanillaUser(client)) { targetptr->disk.modeBits = modebits;