Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/nfs nfs_lookitup: handle "." correctly rather than retur...



details:   https://anonhg.NetBSD.org/src/rev/5692149a8404
branches:  trunk
changeset: 566420:5692149a8404
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat May 08 21:32:34 2004 +0000

description:
nfs_lookitup: handle "." correctly rather than returning garbage on the stack.

diffstat:

 sys/nfs/nfs_vnops.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 8b272be408f1 -r 5692149a8404 sys/nfs/nfs_vnops.c
--- a/sys/nfs/nfs_vnops.c       Sat May 08 21:18:22 2004 +0000
+++ b/sys/nfs/nfs_vnops.c       Sat May 08 21:32:34 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_vnops.c,v 1.193 2004/05/07 16:09:46 yamt Exp $     */
+/*     $NetBSD: nfs_vnops.c,v 1.194 2004/05/08 21:32:34 yamt Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.193 2004/05/07 16:09:46 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.194 2004/05/08 21:32:34 yamt Exp $");
 
 #include "opt_nfs.h"
 #include "opt_uvmhist.h"
@@ -2928,6 +2928,7 @@
                } else if (NFS_CMPFH(dnp, nfhp, fhlen)) {
                    VREF(dvp);
                    newvp = dvp;
+                   np = dnp;
                } else {
                    error = nfs_nget(dvp->v_mount, nfhp, fhlen, &np);
                    if (error) {



Home | Main Index | Thread Index | Old Index