Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Blanking the path buffer only needs to be done when...



details:   https://anonhg.NetBSD.org/src/rev/2ccca0877aa4
branches:  trunk
changeset: 754519:2ccca0877aa4
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun May 02 23:22:51 2010 +0000

description:
Blanking the path buffer only needs to be done when DIAGNOSTIC.
(I meant to set it back this way before committing but evidently forgot
last night. Thanks to rmind for noticing.)

diffstat:

 sys/kern/kern_exec.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r d49085bfa4a2 -r 2ccca0877aa4 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Sun May 02 19:43:39 2010 +0000
+++ b/sys/kern/kern_exec.c      Sun May 02 23:22:51 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.295 2010/05/02 05:30:20 dholland Exp $ */
+/*     $NetBSD: kern_exec.c,v 1.296 2010/05/02 23:22:51 dholland Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.295 2010/05/02 05:30:20 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.296 2010/05/02 23:22:51 dholland Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_modular.h"
@@ -296,8 +296,8 @@
        strcpy(epp->ep_resolvedname, nd.ni_cnd.cn_pnbuf);
 
        /* dump this right away */
-#if 1 /*def DIAGNOSTIC*/
-       /* paranoia (XXX: take this out once things are working) */
+#ifdef DIAGNOSTIC
+       /* paranoia (take this out once namei stuff stabilizes) */
        memset(nd.ni_cnd.cn_pnbuf, '~', PATH_MAX);
 #endif
        PNBUF_PUT(nd.ni_cnd.cn_pnbuf);



Home | Main Index | Thread Index | Old Index