]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
fileserver-sticky-bit-not-admin-only-20080904
authorDerrick Brashear <shadow@dementia.org>
Thu, 4 Sep 2008 20:41:14 +0000 (20:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 4 Sep 2008 20:41:14 +0000 (20:41 +0000)
LICENSE IPL10

don't restrict the sticky bit to admins.

src/viced/afsfileprocs.c

index cd2e27ec05412b684383dc61b6639a8838d90a78..4ad5899be5e95fa8cdc6e0d84dbbc28c0f57097b 100644 (file)
@@ -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 & 0777;
+           modebits = modebits & 1777;
 #endif
        if (VanillaUser(client)) {
            targetptr->disk.modeBits = modebits;