Hello community,

here is the log from the commit of package sysvinit for openSUSE:Factory 
checked in at 2019-04-12 09:11:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sysvinit (Old)
 and      /work/SRC/openSUSE:Factory/.sysvinit.new.27019 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sysvinit"

Fri Apr 12 09:11:30 2019 rev:169 rq:692609 version:2.90

Changes:
--------
--- /work/SRC/openSUSE:Factory/sysvinit/sysvinit.changes        2018-08-15 
10:29:40.911344181 +0200
+++ /work/SRC/openSUSE:Factory/.sysvinit.new.27019/sysvinit.changes     
2019-04-12 09:11:31.805595519 +0200
@@ -1,0 +2,7 @@
+Tue Apr  9 13:13:42 UTC 2019 - Dr. Werner Fink <[email protected]>
+
+- Add patch killproc-mntinf-optional.patch to handle various optional
+  fields of /proc/<pid>/mountinfo on the entry/ies before the hypen
+  (bsc#1131982)
+
+-------------------------------------------------------------------

New:
----
  killproc-mntinf-optional.patch

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

Other differences:
------------------
++++++ sysvinit.spec ++++++
--- /var/tmp/diff_new_pack.clBdEH/_old  2019-04-12 09:11:33.013595906 +0200
+++ /var/tmp/diff_new_pack.clBdEH/_new  2019-04-12 09:11:33.021595909 +0200
@@ -39,6 +39,7 @@
 Patch30:        killproc-%{KPVER}.dif
 Patch31:        killproc-2.18-open_flags.dif
 Patch32:        killproc-sysmacros.patch
+Patch33:        killproc-mntinf-optional.patch
 Patch50:        startpar-%{START}.dif
 Patch51:        startpar-sysmacros.patch
 
@@ -74,6 +75,7 @@
 %patch30
 %patch31 -p0 -b .dialog
 %patch32 -p1
+%patch33 -p0
 ln -t../%{name}-%{SIVER}/doc/killproc README
 popd
 pushd ../startpar-%{START}

++++++ killproc-mntinf-optional.patch ++++++
On newer kernels there are more optional parameter fields
before the hyphen

---
 libinit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- libinit.c
+++ libinit.c   2019-04-09 12:47:35.913748799 +0000
@@ -281,7 +281,7 @@ static void init_mounts(void)
 
     if ((mnt = fopen("/proc/self/mountinfo", "re")) == (FILE*)0)
        return;
-    while (fscanf(mnt, "%i %i %u:%u %*s %s %*s - %s %*s %*[^\n]", &mid, 
&parid, &maj, &min, &point[0], &fstype[0]) == 6) {
+    while (fscanf(mnt, "%i %i %u:%u %*s %s %*[^-] - %s %*s %*[^\n]", &mid, 
&parid, &maj, &min, &point[0], &fstype[0]) == 6) {
        const size_t nlen = strlen(point);
        MNTINFO *restrict p;
        if (posix_memalign((void*)&p, sizeof(void*), alignof(MNTINFO)+(nlen+1)) 
!= 0) {

Reply via email to