Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f3792d63 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Fix OPEN w/create access mode checking



POSIX states that open("foo", O_CREAT|O_RDONLY, 000) should succeed if
the file "foo" does not already exist. With the current NFS client,
it will fail with an EACCES error because of the permissions checks in
nfs4_opendata_access().

Fix is to turn that test off if the server says that we created the file.

Reported-by: default avatar"Frank S. Filz" <ffilzlnx@mindspring.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 31434f49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment