Source-Changes-HG archive

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

[src/trunk]: src/sys/kern fix a debug code to follow recent change about tail...



details:   https://anonhg.NetBSD.org/src/rev/dc7e26592005
branches:  trunk
changeset: 556038:dc7e26592005
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Dec 06 14:17:13 2003 +0000

description:
fix a debug code to follow recent change about tailing slashes.

diffstat:

 sys/kern/vfs_lookup.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r fd8f4e532034 -r dc7e26592005 sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c     Sat Dec 06 14:16:11 2003 +0000
+++ b/sys/kern/vfs_lookup.c     Sat Dec 06 14:17:13 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_lookup.c,v 1.52 2003/12/06 14:16:11 yamt Exp $     */
+/*     $NetBSD: vfs_lookup.c,v 1.53 2003/12/06 14:17:13 yamt Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.52 2003/12/06 14:16:11 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.53 2003/12/06 14:17:13 yamt Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_systrace.h"
@@ -708,6 +708,8 @@
                panic("relookup: bad hash");
        if (cnp->cn_namelen != cp - cnp->cn_nameptr)
                panic ("relookup: bad len");
+       while (*cp == '/')
+               cp++;
        if (*cp != 0)
                panic("relookup: not last component");
 #endif /* DEBUG */



Home | Main Index | Thread Index | Old Index