commit ksh for openSUSE:Factory
Hello community, here is the log from the commit of package ksh for openSUSE:Factory checked in at 2013-11-29 21:25:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ksh (Old) and /work/SRC/openSUSE:Factory/.ksh.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ksh" Changes: -------- --- /work/SRC/openSUSE:Factory/ksh/ksh.changes 2013-11-29 16:22:50.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.ksh.new/ksh.changes 2013-11-29 21:25:21.000000000 +0100 @@ -1,0 +2,5 @@ +Fri Nov 29 15:45:44 UTC 2013 - werner@suse.de + +- Add patch ksh93-pwd.dif to fix crash if cwd is gone (bnc#852160) + +------------------------------------------------------------------- New: ---- ksh93-pwd.dif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ksh.spec ++++++ --- /var/tmp/diff_new_pack.YStJ3l/_old 2013-11-29 21:25:23.000000000 +0100 +++ /var/tmp/diff_new_pack.YStJ3l/_new 2013-11-29 21:25:23.000000000 +0100 @@ -135,6 +135,8 @@ Patch36: ksh93-fs3d.dif # PATCH-FIX-UPSTREAM Ouch ... use memmove instead of memcopy on overlapping areas Patch37: ksh93-sfio.dif +# PATCH-FIX-SUSE Do not crash wenn cwd is gone [bnc#852160] +Patch38: ksh93-pwd.dif Patch42: ksh-locale.patch %description @@ -226,6 +228,7 @@ %patch35 %patch36 %patch37 +%patch38 %build # ++++++ ksh93-pwd.dif ++++++ --- src/cmd/ksh93/sh/subshell.c +++ src/cmd/ksh93/sh/subshell.c 2013-11-29 14:46:37.966735617 +0000 @@ -549,7 +549,9 @@ Sfio_t *sh_subshell(Shell_t *shp,Shnode_ #ifdef _lib_fchdir for(xp=sp->prev; xp; xp=xp->prev) { - if(xp->pwdfd>0 && strcmp(xp->pwd,shp->pwd)==0) + if (!shp->pwd) + break; + if(xp->pwdfd>0 && xp->pwd && strcmp(xp->pwd,shp->pwd)==0) { sp->pwdfd = xp->pwdfd; break; -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de