diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 60a93cdefef5..a468224a118f 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -171,7 +171,7 @@ do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfs | |||
171 | accmode |= NFSD_MAY_READ; | 171 | accmode |= NFSD_MAY_READ; |
172 | if (open->op_share_access & NFS4_SHARE_ACCESS_WRITE) | 172 | if (open->op_share_access & NFS4_SHARE_ACCESS_WRITE) |
173 | accmode |= (NFSD_MAY_WRITE | NFSD_MAY_TRUNC); | 173 | accmode |= (NFSD_MAY_WRITE | NFSD_MAY_TRUNC); |
174 | if (open->op_share_deny & NFS4_SHARE_DENY_WRITE) | 174 | if (open->op_share_deny & NFS4_SHARE_DENY_READ) |
175 | accmode |= NFSD_MAY_WRITE; | 175 | accmode |= NFSD_MAY_WRITE; |
176 | 176 | ||
177 | status = fh_verify(rqstp, current_fh, S_IFREG, accmode); | 177 | status = fh_verify(rqstp, current_fh, S_IFREG, accmode); |