Hello community,

here is the log from the commit of package sysstat for openSUSE:Factory checked 
in at 2011-11-10 16:05:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sysstat (Old)
 and      /work/SRC/openSUSE:Factory/.sysstat.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sysstat", Maintainer is "pu...@suse.com"

Changes:
--------
--- /work/SRC/openSUSE:Factory/sysstat/sysstat.changes  2011-10-27 
14:00:49.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.sysstat.new/sysstat.changes     2011-11-10 
16:05:20.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Nov  9 12:25:47 UTC 2011 - pu...@suse.com
+
+- add sysstat-fix-iostat-crash.patch (bnc#729130) 
+
+-------------------------------------------------------------------

New:
----
  sysstat-fix-iostat-crash.patch

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

Other differences:
------------------
++++++ sysstat.spec ++++++
--- /var/tmp/diff_new_pack.bh1ubb/_old  2011-11-10 16:05:21.000000000 +0100
+++ /var/tmp/diff_new_pack.bh1ubb/_new  2011-11-10 16:05:21.000000000 +0100
@@ -44,6 +44,8 @@
 Patch4:         sysstat-do-not-strip.patch
 # PATCH-FIX-OPENSUSE avoid build dates in generated files
 Patch5:         sysstat-9.0.4-no-build-date.patch
+# PATCH-FIX-UPSTREAM fix crash in iostat -N (bnc#729130)
+Patch6:         sysstat-fix-iostat-crash.patch
 PreReq:         %fillup_prereq
 PreReq:         %insserv_prereq
 Requires:       gettext
@@ -84,6 +86,7 @@
 %patch3
 %patch4 -p1
 %patch5
+%patch6 -p1
 cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
 
 %build

++++++ sysstat-fix-iostat-crash.patch ++++++
Index: sysstat-10.0.2/ioconf.c
===================================================================
--- sysstat-10.0.2.orig/ioconf.c
+++ sysstat-10.0.2/ioconf.c
@@ -504,7 +504,7 @@ char *transform_devmapname(unsigned int
                        dm_minor = minor(aux.st_rdev);
        
                        if ((dm_minor == minor) && (dm_major == major)) {
-                               dm_name = dp->d_name;
+                               dm_name = strdup(dp->d_name);
                                break;
                        }
                }
Index: sysstat-10.0.2/iostat.c
===================================================================
--- sysstat-10.0.2.orig/iostat.c
+++ sysstat-10.0.2/iostat.c
@@ -686,7 +686,8 @@ void read_diskstats_stat(int curr)
                         */
                        dm_name = transform_devmapname(major, minor);
                        if (dm_name) {
-                               strcpy(dev_name, dm_name);
+                               strncpy(dev_name, dm_name, MAX_NAME_LEN);
+                               free(dm_name);
                        }
                }
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to