Do not accept vnode type changes to an active node. This may wreak
havoc if the server erroneously uses the same filehandle for different files. This changes back revision 1.28; the PR that that revision fixed doesn't apply anymore, it has been verified not to be a problem with this change.
This commit is contained in:
parent
04f534474c
commit
dcf7889500
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nfs_subs.c,v 1.86 2000/09/27 18:36:03 fvdl Exp $ */
|
||||
/* $NetBSD: nfs_subs.c,v 1.87 2000/10/24 12:02:04 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -1581,7 +1581,7 @@ nfs_loadattrcache(vpp, fp, vaper)
|
|||
* information.
|
||||
*/
|
||||
np = VTONFS(vp);
|
||||
if (vp->v_type != vtyp) {
|
||||
if (vp->v_type == VNON) {
|
||||
vp->v_type = vtyp;
|
||||
if (vp->v_type == VFIFO) {
|
||||
extern int (**fifo_nfsv2nodeop_p) __P((void *));
|
||||
|
|
Loading…
Reference in New Issue