diff --git a/SOURCES/ksh-20120801-cdfork.patch b/SOURCES/ksh-20120801-cdfork.patch index 19ea1d5..c82cb4c 100644 --- a/SOURCES/ksh-20120801-cdfork.patch +++ b/SOURCES/ksh-20120801-cdfork.patch @@ -27,12 +27,14 @@ { if(cp=getcwd(NIL(char*),0)) { -@@ -269,8 +263,6 @@ char *path_pwd(Shell_t *shp,int flag) +@@ -269,8 +263,8 @@ char *path_pwd(Shell_t *shp,int flag) } break; } - case 5: ++ case 4: - return(dfault); ++ return((char*)e_dot); } if(cp && *cp=='/' && test_inode(cp,e_dot)) break; diff --git a/SPECS/ksh.spec b/SPECS/ksh.spec index fd88f01..ca9a6d0 100644 --- a/SPECS/ksh.spec +++ b/SPECS/ksh.spec @@ -8,7 +8,7 @@ Group: System Environment/Shells #CPL everywhere else (for KSH itself) License: EPL Version: 20120801 -Release: 22%{?dist}.2 +Release: 22%{?dist}.3 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 Source2: kshcomp.conf @@ -199,7 +199,7 @@ sed -i '/-c sh\/main.c/s|${mam_cc_FLAGS} |${mam_cc_FLAGS} ${CCFLAGS} |p' src/cmd %build XTRAFLAGS="" -for f in -Wno-unknown-pragmas -Wno-missing-braces -Wno-unused-result -Wno-return-type -Wno-int-to-pointer-cast -Wno-parentheses -Wno-unused -Wno-unused-but-set-variable -Wno-cpp +for f in -P -Wno-unknown-pragmas -Wno-missing-braces -Wno-unused-result -Wno-return-type -Wno-int-to-pointer-cast -Wno-parentheses -Wno-unused -Wno-unused-but-set-variable -Wno-cpp do gcc $f -E - /dev/null 2>&1 && XTRAFLAGS="$XTRAFLAGS $f" done @@ -315,6 +315,9 @@ fi rm -rf $RPM_BUILD_ROOT %changelog +* Wed Sep 30 2015 Michal Hlavinka - 20120801-22.3 +- ksh could hang when executed from removed directory (#1267537) + * Wed Jun 03 2015 Michal Hlavinka - 20120801-22.2 - ksh crashed when disk was full (#1227420)