STABLE14-fileserver-sticky-bit-admin-only-20080905

LICENSE IPL10

do restrict the sticky bit to admins.


(cherry picked from commit 5c2406070f)
This commit is contained in:
Derrick Brashear 2008-09-05 17:58:05 +00:00
parent bceaa3b027
commit 398f676fc1

View File

@ -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;