Module Name:    src
Committed By:   dholland
Date:           Tue Aug  9 23:16:17 UTC 2011

Modified Files:
        src/sys/kern: vfs_lookup.c

Log Message:
Include missing part of previous commit to this file. (sigh)


To generate a diff of this commit:
cvs rdiff -u -r1.185 -r1.186 src/sys/kern/vfs_lookup.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_lookup.c
diff -u src/sys/kern/vfs_lookup.c:1.185 src/sys/kern/vfs_lookup.c:1.186
--- src/sys/kern/vfs_lookup.c:1.185	Tue Aug  9 18:37:56 2011
+++ src/sys/kern/vfs_lookup.c	Tue Aug  9 23:16:17 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_lookup.c,v 1.185 2011/08/09 18:37:56 dholland Exp $	*/
+/*	$NetBSD: vfs_lookup.c,v 1.186 2011/08/09 23:16:17 dholland Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.185 2011/08/09 18:37:56 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.186 2011/08/09 23:16:17 dholland Exp $");
 
 #include "opt_magiclinks.h"
 
@@ -768,6 +768,10 @@
 		}
 		vref(searchdir);
 		vn_lock(searchdir, LK_EXCLUSIVE | LK_RETRY);
+		while (cnp->cn_nameptr[0] == '/') {
+			cnp->cn_nameptr++;
+			ndp->ni_pathlen--;
+		}
 	}
 
 	*newsearchdir_ret = searchdir;

Reply via email to