Hello community,

here is the log from the commit of package ksh for openSUSE:Factory
checked in at Tue Jul 5 10:15:13 CEST 2011.



--------
--- ksh/ksh.changes     2011-06-17 12:32:42.000000000 +0200
+++ /mounts/work_src_done/STABLE/ksh/ksh.changes        2011-07-04 
17:44:28.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Jul  4 15:19:20 UTC 2011 - [email protected]
+
+- Avoid crash on unset of function within the same function 
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  ksh93-unset-f.dif

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ksh.spec ++++++
--- /var/tmp/diff_new_pack.FXatdm/_old  2011-07-05 10:14:48.000000000 +0200
+++ /var/tmp/diff_new_pack.FXatdm/_new  2011-07-05 10:14:48.000000000 +0200
@@ -37,7 +37,7 @@
 %endif
 AutoReqProv:    on
 Version:        93t
-Release:        198
+Release:        200
 Summary:        Korn Shell
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source:         INIT.2010-06-21.tar.bz2
@@ -77,6 +77,7 @@
 Patch23:        ksh93-array.dif
 Patch24:        ksh93-pipe.dif
 Patch25:        ksh93-argv.dif
+Patch26:        ksh93-unset-f.dif
 %global         use_suid_exe 0
 %global         use_locale 1
 %global         debug_memleak 0
@@ -153,6 +154,7 @@
 %patch23
 %patch24
 %patch25
+%patch26
 
 %build
   TMPDIR=$(mktemp -d /tmp/ksh-build.XXXXXX) || exit 1

++++++ ksh93-unset-f.dif ++++++
--- src/cmd/ksh93/sh/xec.c
+++ src/cmd/ksh93/sh/xec.c      2011-07-04 15:09:52.252426415 +0000
@@ -2780,7 +2780,8 @@ int sh_funscope(int argn, char *argv[],i
        jmpval = sigsetjmp(buff.buff,0);
        if(!fun)
        {
-               shp->st.filename = fp->node->nvalue.rp->fname;
+               if (fp->node->nvalue.rp)
+                       shp->st.filename = fp->node->nvalue.rp->fname;
                shp->st.funname = nv_name(fp->node);
                shp->last_root = nv_dict(DOTSHNOD);
                nv_putval(SH_PATHNAMENOD,shp->st.filename,NV_NOFREE);

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to