From 90458110d922016645babe00b8f558bd36362380 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 16 Apr 1997 20:08:27 +0000 Subject: Fix compilation error. --- nfs/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nfs') 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) -- cgit v1.2.3