diff options
author | green <green@FreeBSD.org> | 2001-11-28 23:02:33 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2001-11-28 23:02:33 +0000 |
commit | a7fea08d45b0eb81d0db682388c6578b2f641aa8 (patch) | |
tree | caa2fe448e0c1b46a5fcbd014355caa744951574 /sys | |
parent | 27268411499cc98932fe19e8c3aeb4cf00b322c0 (diff) | |
download | FreeBSD-src-a7fea08d45b0eb81d0db682388c6578b2f641aa8.zip FreeBSD-src-a7fea08d45b0eb81d0db682388c6578b2f641aa8.tar.gz |
Return a POSIX-compliant error for write(2) failure.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/security/lomac/lomacfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/lomac/lomacfs_vnops.c b/sys/security/lomac/lomacfs_vnops.c index 4a2e3c1..ca4a188 100644 --- a/sys/security/lomac/lomacfs_vnops.c +++ b/sys/security/lomac/lomacfs_vnops.c @@ -592,7 +592,7 @@ lomacfs_write( &lobj)) error = VOP_WRITE(lvp, ap->a_uio, ap->a_ioflag, ap->a_cred); else - error = EPERM; + error = EIO; return (error); } |