aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2003-03-21 05:13:23 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2003-03-21 05:13:23 +0000
commit9ba703c0241d2c5fb2b254c02303a34c41cded55 (patch)
treeb24d34cb8df71c7074a00cf8e88395cfb5edb695
parentea0d04f36e776ba238362e6ec616b21e5bdeaa7c (diff)
Notes
-rw-r--r--sys/nfsclient/nfs_vnops.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index b2a8c715d6c9..af198199a692 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -2984,6 +2984,13 @@ nfsspec_access(struct vop_access_args *ap)
int error;
/*
+ * Map VAPPEND to VWRITE; NFSv2 does not understand the concept
+ * of append-only files. XXX What about VADMIN and VSTAT?
+ */
+ if (mode & VAPPEND)
+ mode = (mode & ~VAPPEND) | VWRITE;
+
+ /*
* Disallow write attempts on filesystems mounted read-only;
* unless the file is a socket, fifo, or a block or character
* device resident on the filesystem.