components/tcsh/patches/004.tcsh-6.14.00-avoid_null_for_cwd.patch
branchs11-update
changeset 2494 c2dd5561bf4f
parent 2493 9911278899a3
child 2498 0047431f98e9
equal deleted inserted replaced
2493:9911278899a3 2494:c2dd5561bf4f
     1 diff -up tcsh-6.14.00/sh.proc.c.orig tcsh-6.14.00/sh.proc.c
       
     2 --- tcsh-6.14.00/sh.proc.c.orig	2010-09-08 10:31:31.000000000 +0200
       
     3 +++ tcsh-6.14.00/sh.proc.c	2010-09-08 10:48:07.996573506 +0200
       
     4 @@ -396,7 +396,7 @@ found:
       
     5  #ifdef notdef
       
     6  		jobflags & PAEXITED ||
       
     7  #endif /* notdef */
       
     8 -		!eq(dcwd->di_name, fp->p_cwd->di_name))) {
       
     9 +		fp->p_cwd == NULL || !eq(dcwd->di_name, fp->p_cwd->di_name))) {
       
    10  	    /* PWP: print a newline after ^C */
       
    11  		if (jobflags & PINTERRUPTED) {
       
    12  #ifdef SHORT_STRINGS