diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-02-04 18:09:29 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-02-04 18:09:29 +0000 |
commit | 534670bd35fd9642e6b4310eb0456b6b883a018d (patch) | |
tree | 97f1e02433f36edd096291b4791d045c057ec66d /sys/fs/pseudofs | |
parent | 4a0034cf46c9aa229c8598f203eda9a9c64ad79a (diff) | |
download | FreeBSD-src-534670bd35fd9642e6b4310eb0456b6b883a018d.zip FreeBSD-src-534670bd35fd9642e6b4310eb0456b6b883a018d.tar.gz |
Return EPERM instead of 0 in the un-implemented pseudofs_setattr().
Conceivably, it should even return EOPNOTSUPP.
Diffstat (limited to 'sys/fs/pseudofs')
-rw-r--r-- | sys/fs/pseudofs/pseudofs_vnops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c index 769ff30..aa3e0af 100644 --- a/sys/fs/pseudofs/pseudofs_vnops.c +++ b/sys/fs/pseudofs/pseudofs_vnops.c @@ -719,8 +719,7 @@ pfs_setattr(struct vop_setattr_args *va) if (va->a_vap->va_flags != (u_long)VNOVAL) PFS_RETURN (EOPNOTSUPP); - /* XXX it's a bit more complex than that, really... */ - PFS_RETURN (0); + PFS_RETURN (EPERM); } /* |