Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Include missing part of previous commit to this fil...
details: https://anonhg.NetBSD.org/src/rev/45d1acfe4ddb
branches: trunk
changeset: 768159:45d1acfe4ddb
user: dholland <dholland%NetBSD.org@localhost>
date: Tue Aug 09 23:16:17 2011 +0000
description:
Include missing part of previous commit to this file. (sigh)
diffstat:
sys/kern/vfs_lookup.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 04f6a86a1005 -r 45d1acfe4ddb sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c Tue Aug 09 21:07:14 2011 +0000
+++ b/sys/kern/vfs_lookup.c Tue Aug 09 23:16:17 2011 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index