summaryrefslogtreecommitdiff
path: root/nfs/ops.c
diff options
context:
space:
mode:
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);