Module Name:    src
Committed By:   dholland
Date:           Sun May  2 23:22:51 UTC 2010

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

Log Message:
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.)


To generate a diff of this commit:
cvs rdiff -u -r1.295 -r1.296 src/sys/kern/kern_exec.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/kern_exec.c
diff -u src/sys/kern/kern_exec.c:1.295 src/sys/kern/kern_exec.c:1.296
--- src/sys/kern/kern_exec.c:1.295	Sun May  2 05:30:20 2010
+++ src/sys/kern/kern_exec.c	Sun May  2 23:22:51 2010
@@ -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);

Reply via email to