mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
viced-file-readonly-fs-support-20030408
add missed curly braces so VannilaUsers don't get EACCES
This commit is contained in:
parent
2b295f4393
commit
3ab4af08ac
@ -874,7 +874,7 @@ Check_PermissionRights(Vnode *targetptr,
|
|||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
if ((targetptr->disk.type != vDirectory)
|
if ((targetptr->disk.type != vDirectory)
|
||||||
&& (!(targetptr->disk.modeBits & OWNERWRITE)))
|
&& (!(targetptr->disk.modeBits & OWNERWRITE))) {
|
||||||
if (readonlyServer)
|
if (readonlyServer)
|
||||||
return(VREADONLY);
|
return(VREADONLY);
|
||||||
if (VanillaUser(client))
|
if (VanillaUser(client))
|
||||||
@ -882,6 +882,7 @@ Check_PermissionRights(Vnode *targetptr,
|
|||||||
else osi_audit( PrivilegeEvent, 0, AUD_INT, (client ? client->ViceId : 0),
|
else osi_audit( PrivilegeEvent, 0, AUD_INT, (client ? client->ViceId : 0),
|
||||||
AUD_INT, CallingRoutine, AUD_END);
|
AUD_INT, CallingRoutine, AUD_END);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else { /* a status store */
|
else { /* a status store */
|
||||||
if (readonlyServer)
|
if (readonlyServer)
|
||||||
return(VREADONLY);
|
return(VREADONLY);
|
||||||
|
Loading…
Reference in New Issue
Block a user