From 9077ba552000089b38cc89ee3f9be687998bcce6 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 12 Feb 1997 18:54:56 +0000 Subject: Wed Feb 12 13:53:42 1997 Thomas Bushnell, n/BSG * 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.) --- nfs/ChangeLog | 6 ++++++ nfs/ops.c | 4 ++-- 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 + + * 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 * 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); -- cgit v1.2.3