From f3792d63d2a377b7cbe91a204e9582c4cf831eb3 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Thu, 10 Jul 2014 08:54:32 -0400 Subject: [PATCH] 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: "Frank S. Filz" Signed-off-by: Trond Myklebust --- Reading git-format-patch failed