viced-file-readonly-fs-support-20030408

add missed curly braces so VannilaUsers don't get EACCES
This commit is contained in:
Love Hörnquist-Åstrand 2003-04-08 22:38:18 +00:00 committed by Derrick Brashear
parent 2b295f4393
commit 3ab4af08ac

View File

@ -874,7 +874,7 @@ 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))
@ -882,6 +882,7 @@ Check_PermissionRights(Vnode *targetptr,
else osi_audit( PrivilegeEvent, 0, AUD_INT, (client ? client->ViceId : 0),
AUD_INT, CallingRoutine, AUD_END);
}
}
else { /* a status store */
if (readonlyServer)
return(VREADONLY);