From 398f676fc1bede8029e61bd37058be6922a43d3b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 5 Sep 2008 17:58:05 +0000 Subject: [PATCH] STABLE14-fileserver-sticky-bit-admin-only-20080905 LICENSE IPL10 do restrict the sticky bit to admins. (cherry picked from commit 5c2406070fc08c5fee0a09a1aa25e16af123b81a) --- src/viced/afsfileprocs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 7464e295ee..c59f7a0d88 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;