components/tcsh/patches/004.tcsh-6.14.00-avoid_null_for_cwd.patch
author Melynda Hunter <melynda.hunter@Oracle.COM>
Wed, 23 Jan 2013 10:23:34 -0800
branchs11u1-sru
changeset 2473 d4b4320e689f
parent 218 2659b05538d8
permissions -rw-r--r--
Added tag 0.175.1.4.0.3.0 for changeset a1822222111d

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