viced-file-readonly-fs-support-20030408
authorLove Hörnquist-Åstrand <lha@stacken.kth.se>
Tue, 8 Apr 2003 22:38:18 +0000 (22:38 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 8 Apr 2003 22:38:18 +0000 (22:38 +0000)
add missed curly braces so VannilaUsers don't get EACCES

src/viced/afsfileprocs.c

index 800cbb9..586c64e 100644 (file)
@@ -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)