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;