summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'nfs')
-rw-r--r--nfs/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nfs/ops.c b/nfs/ops.c
index 52953ec7..34c523f9 100644
--- a/nfs/ops.c
+++ b/nfs/ops.c
@@ -330,7 +330,7 @@ netfs_attempt_set_size (struct iouser *cred, struct node *np,
writing. RCS, for example, uses this to create lock files. So permit
cases where the O_TRUNC isn't doing anything to succeed if the user
does have the file open for writing. */
- if (err == EACCES && (cred->po->openstat & O_WRITE))
+ if (err == EACCES)
{
err = netfs_validate_stat (np, cred);
if (!err && np->nn_stat.st_size == size)