summaryrefslogtreecommitdiff
path: root/nfs
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
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')
-rw-r--r--nfs/ChangeLog6
-rw-r--r--nfs/ops.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/nfs/ChangeLog b/nfs/ChangeLog
index 3a79fc2a..21102f84 100644
--- a/nfs/ChangeLog
+++ b/nfs/ChangeLog
@@ -1,3 +1,9 @@
+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.)
+
Wed Nov 20 17:13:59 1996 Miles Bader <miles@gnu.ai.mit.edu>
* Makefile (HURDLIBS): Add iohelp.
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);