summaryrefslogtreecommitdiff
path: root/nfs/ops.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-02-12 18:54:56 +0000
committerThomas Bushnell <thomas@gnu.org>1997-02-12 18:54:56 +0000
commit9077ba552000089b38cc89ee3f9be687998bcce6 (patch)
tree61b6fa4f51cc79786840c4a94fa58258f1668a9b /nfs/ops.c
parent5b2f390d60c7cf11da6ee794ceb0f37b0194d32a (diff)
Wed Feb 12 13:53:42 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* ops.c (netfs_check_open_permissions): If this is a new node, don't report an error here. (Though, later I/O requests still might fail.)
Diffstat (limited to 'nfs/ops.c')
-rw-r--r--nfs/ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nfs/ops.c b/nfs/ops.c
index 1e4ffb26..03d3be9b 100644
--- a/nfs/ops.c
+++ b/nfs/ops.c
@@ -1,5 +1,5 @@
/* Libnetfs callbacks for node operations in NFS client
- Copyright (C) 1994, 1995, 1996 Free Software Foundation
+ Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -1167,7 +1167,7 @@ netfs_check_open_permissions (struct iouser *cred, struct node *np,
{
int modes;
- if ((flags & (O_READ|O_WRITE|O_EXEC)) == 0)
+ if (newnode || (flags & (O_READ|O_WRITE|O_EXEC)) == 0)
return 0;
netfs_report_access (cred, np, &modes);