Module Name:    src
Committed By:   dsl
Date:           Thu Aug  6 21:33:54 UTC 2009

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

Log Message:
ktrace the arguments to script interpreters that come from the script.
Fixes PR/33021


To generate a diff of this commit:
cvs rdiff -u -r1.289 -r1.290 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.289 src/sys/kern/kern_exec.c:1.290
--- src/sys/kern/kern_exec.c:1.289	Tue Jun  2 23:21:38 2009
+++ src/sys/kern/kern_exec.c	Thu Aug  6 21:33:54 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_exec.c,v 1.289 2009/06/02 23:21:38 pooka Exp $	*/
+/*	$NetBSD: kern_exec.c,v 1.290 2009/08/06 21:33:54 dsl 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.289 2009/06/02 23:21:38 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.290 2009/08/06 21:33:54 dsl Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_modular.h"
@@ -620,6 +620,7 @@
 			while (*cp)
 				*dp++ = *cp++;
 			*dp++ = '\0';
+			ktrexecarg(tmpfap->fa_arg, cp - tmpfap->fa_arg);
 
 			kmem_free(tmpfap->fa_arg, tmpfap->fa_len);
 			tmpfap++; argc++;

Reply via email to