diff options
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index b2a8c71..af19819 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. |