From 2f218dcd72215736a6e6b6cb6530d6715a07e2b0 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: May 05 2010 12:41:08 +0000 Subject: - fix rare cd builtin crash (#578582) --- diff --git a/ksh-20100309-pathcrash.patch b/ksh-20100309-pathcrash.patch new file mode 100644 index 0000000..9cbbe12 --- /dev/null +++ b/ksh-20100309-pathcrash.patch @@ -0,0 +1,11 @@ +diff -up ksh-20100309/src/cmd/ksh93/sh/path.c.pathcrash ksh-20100309/src/cmd/ksh93/sh/path.c +--- ksh-20100309/src/cmd/ksh93/sh/path.c.pathcrash 2010-05-05 14:05:41.670681132 +0200 ++++ ksh-20100309/src/cmd/ksh93/sh/path.c 2010-05-05 14:05:41.707584330 +0200 +@@ -1437,6 +1437,7 @@ static Pathcomp_t *path_addcomp(Pathcomp + } + for(pp=first, oldpp=0; pp; oldpp=pp, pp=pp->next); + pp = newof((Pathcomp_t*)0,Pathcomp_t,1,len+1); ++ pp->shp = sh_getinterp(); + pp->refcount = 1; + memcpy((char*)(pp+1),name,len+1); + pp->name = (char*)(pp+1); diff --git a/ksh.spec b/ksh.spec index d5c4b4e..a68bdca 100644 --- a/ksh.spec +++ b/ksh.spec @@ -6,7 +6,7 @@ URL: http://www.kornshell.com/ Group: System Environment/Shells License: CPL Version: 20100309 -Release: 4%{?dist} +Release: 5%{?dist} Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz Source3: kshrc.rhs @@ -27,6 +27,8 @@ Patch4: ksh-20100309-compsubst.patch #sent upstream, rhbz#587127, for ksh <2010-03-19 Patch5: ksh-20100309-fixwhence.patch +#from upstream, rhbz#578582, for ksh - 20100309-5 +- fix rare cd builtin crash (#578582) + * Wed May 05 2010 Michal Hlavinka - 20100309-4 - fix infinite loop when whence builtin is used with -q option (#587127) - fix stdin for double command substitution (#584007)