summaryrefslogtreecommitdiff
path: root/nfs/ops.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-04-16 20:08:27 +0000
committerThomas Bushnell <thomas@gnu.org>1997-04-16 20:08:27 +0000
commit90458110d922016645babe00b8f558bd36362380 (patch)
tree55c37bff83686d57d7be98367a564432fc27d38b /nfs/ops.c
parent88179a43127e2ea3229fff9bdbf08b8932906b1a (diff)
Fix compilation error.
Diffstat (limited to 'nfs/ops.c')
-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)