From 3ab4af08ac9262e3384602fe49a4697acdd3ebd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist-=C3=85strand?= Date: Tue, 8 Apr 2003 22:38:18 +0000 Subject: [PATCH] viced-file-readonly-fs-support-20030408 add missed curly braces so VannilaUsers don't get EACCES --- src/viced/afsfileprocs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 800cbb9548..586c64ea33 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -874,13 +874,14 @@ Check_PermissionRights(Vnode *targetptr, } else #endif if ((targetptr->disk.type != vDirectory) - && (!(targetptr->disk.modeBits & OWNERWRITE))) + && (!(targetptr->disk.modeBits & OWNERWRITE))) { if (readonlyServer) return(VREADONLY); if (VanillaUser(client)) return(EACCES); else osi_audit( PrivilegeEvent, 0, AUD_INT, (client ? client->ViceId : 0), AUD_INT, CallingRoutine, AUD_END); + } } else { /* a status store */ if (readonlyServer)