svn commit: trunk/busybox/shell

vda at busybox.net vda at busybox.net
Wed Jul 18 21:35:47 UTC 2007


Author: vda
Date: 2007-07-18 14:35:43 -0700 (Wed, 18 Jul 2007)
New Revision: 19158

Log:
ash: fix SEGV in forkchild (jp can be NULL). here documents were affected.



Modified:
   trunk/busybox/shell/ash.c


Changeset:
Modified: trunk/busybox/shell/ash.c
===================================================================
--- trunk/busybox/shell/ash.c	2007-07-18 18:47:13 UTC (rev 19157)
+++ trunk/busybox/shell/ash.c	2007-07-18 21:35:43 UTC (rev 19158)
@@ -4424,7 +4424,8 @@
 #if JOBS
 	/* For "jobs | cat" to work like in bash, we must retain list of jobs
 	 * in child, but we do need to remove ourself */
-	freejob(jp);
+	if (jp)
+		freejob(jp);
 #else
 	for (jp = curjob; jp; jp = jp->prev_job)
 		freejob(jp);




More information about the busybox-cvs mailing list