aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorRoss Lagerwall <[email protected]>2014-08-09 14:44:00 +0100
committerJ. Bruce Fields <[email protected]>2014-08-17 12:00:14 -0400
commit63bab0651be0ba857200219a08644e6a99f448b6 (patch)
tree17fd443e8c826a601742d107e81d90e5b1be5940 /include/linux/fpga/fpga-mgr.h
parentafbda402a02bde74f350ff98243265dfd3108fb3 (diff)
nfsd3: Check write permission after checking existence
When creating a file that already exists in a read-only directory with O_EXCL, the NFSv3 server returns EACCES rather than EEXIST (which local files and the NFSv4 server return). Fix this by checking the MAY_CREATE permission only if the file does not exist. Since this already happens in do_nfsd_create, the check in nfsd3_proc_create can simply be removed. Signed-off-by: Ross Lagerwall <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions