7042150 Problem with utility/tcsh
authorMike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 09 May 2011 10:46:28 -0700
changeset 218 2659b05538d8
parent 217 52d802061ca7
child 219 22d9e175d379
7042150 Problem with utility/tcsh
components/tcsh/patches/004.tcsh-6.14.00-avoid_null_for_cwd.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/tcsh/patches/004.tcsh-6.14.00-avoid_null_for_cwd.patch	Mon May 09 10:46:28 2011 -0700
@@ -0,0 +1,12 @@
+diff -up tcsh-6.14.00/sh.proc.c.orig tcsh-6.14.00/sh.proc.c
+--- tcsh-6.14.00/sh.proc.c.orig	2010-09-08 10:31:31.000000000 +0200
++++ tcsh-6.14.00/sh.proc.c	2010-09-08 10:48:07.996573506 +0200
+@@ -396,7 +396,7 @@ found:
+ #ifdef notdef
+ 		jobflags & PAEXITED ||
+ #endif /* notdef */
+-		!eq(dcwd->di_name, fp->p_cwd->di_name))) {
++		fp->p_cwd == NULL || !eq(dcwd->di_name, fp->p_cwd->di_name))) {
+ 	    /* PWP: print a newline after ^C */
+ 		if (jobflags & PINTERRUPTED) {
+ #ifdef SHORT_STRINGS