diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-02-04 18:21:59 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-02-04 18:21:59 +0000 |
commit | 609fda3cf4adeff5ec625c64cb805fcc8bf6f8c5 (patch) | |
tree | 81715b3919dd8c0c66c3511588f2afc88a187c01 /sys | |
parent | 534670bd35fd9642e6b4310eb0456b6b883a018d (diff) | |
download | FreeBSD-src-609fda3cf4adeff5ec625c64cb805fcc8bf6f8c5.zip FreeBSD-src-609fda3cf4adeff5ec625c64cb805fcc8bf6f8c5.tar.gz |
Change EPERM to EOPNOTSUPP when failing pseudofs_setattr() arbitrarily.
Quoth the alfred: The latter would be better.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/pseudofs/pseudofs_vnops.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c index aa3e0af..0c8bdc3 100644 --- a/sys/fs/pseudofs/pseudofs_vnops.c +++ b/sys/fs/pseudofs/pseudofs_vnops.c @@ -716,10 +716,8 @@ static int pfs_setattr(struct vop_setattr_args *va) { PFS_TRACE((((struct pfs_vdata *)va->a_vp->v_data)->pvd_pn->pn_name)); - - if (va->a_vap->va_flags != (u_long)VNOVAL) - PFS_RETURN (EOPNOTSUPP); - PFS_RETURN (EPERM); + + PFS_RETURN (EOPNOTSUPP); } /* |