mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
macos-no-read-on-directories-20071127
thanks to quentin@mit.edu for pointing this out. no read() on directories
This commit is contained in:
parent
89261e8b84
commit
746aab982a
@ -743,6 +743,9 @@ afs_vop_read(ap)
|
||||
int code;
|
||||
struct vnode *vp = ap->a_vp;
|
||||
struct vcache *avc = VTOAFS(vp);
|
||||
|
||||
if (vnode_isdir(ap->a_vp))
|
||||
return EISDIR;
|
||||
#ifdef AFS_DARWIN80_ENV
|
||||
ubc_sync_range(ap->a_vp, AFS_UIO_OFFSET(ap->a_uio), AFS_UIO_OFFSET(ap->a_uio) + AFS_UIO_RESID(ap->a_uio), UBC_PUSHDIRTY);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user