From f2a00e7e81514ac1610bdf3772577d65c516b23abf65146a48c33702626bd32f Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 9 Apr 2019 13:17:18 +0000 Subject: [PATCH 1/3] Optional seventh and more fields before the hyphen in mountinfo OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=231 --- killproc-mntinf-optional.patch | 18 ++++++++++++++++++ powerd.spec | 2 +- sysvinit.changes | 6 ++++++ sysvinit.spec | 4 +++- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 killproc-mntinf-optional.patch diff --git a/killproc-mntinf-optional.patch b/killproc-mntinf-optional.patch new file mode 100644 index 0000000..82a063c --- /dev/null +++ b/killproc-mntinf-optional.patch @@ -0,0 +1,18 @@ +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) { diff --git a/powerd.spec b/powerd.spec index eb332bd..c8ffb70 100644 --- a/powerd.spec +++ b/powerd.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # diff --git a/sysvinit.changes b/sysvinit.changes index b68d4fa..33f55a6 100644 --- a/sysvinit.changes +++ b/sysvinit.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 9 13:13:42 UTC 2019 - Dr. Werner Fink + +- Add patch killproc-mntinf-optional.patch to handle various optional + fields of /proc//mountinfo on the entry/ies before the hypen + ------------------------------------------------------------------- Mon Aug 6 13:21:20 UTC 2018 - werner@suse.de diff --git a/sysvinit.spec b/sysvinit.spec index 7ea47eb..cd40d86 100644 --- a/sysvinit.spec +++ b/sysvinit.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -39,6 +39,7 @@ Patch9: %{name}-%{SIVER}-no-kill.patch 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 @@ pushd ../killproc-%{KPVER} %patch30 %patch31 -p0 -b .dialog %patch32 -p1 +%patch33 -p0 ln -t../%{name}-%{SIVER}/doc/killproc README popd pushd ../startpar-%{START} From 83eb94860d5c3bcaef303263f13d9b37f0310bed85a7da7954de3b4f11063f85 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 9 Apr 2019 13:25:32 +0000 Subject: [PATCH 2/3] bsc#1131982 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=232 --- sysvinit.changes | 1 + 1 file changed, 1 insertion(+) diff --git a/sysvinit.changes b/sysvinit.changes index 33f55a6..691d317 100644 --- a/sysvinit.changes +++ b/sysvinit.changes @@ -3,6 +3,7 @@ Tue Apr 9 13:13:42 UTC 2019 - Dr. Werner Fink - Add patch killproc-mntinf-optional.patch to handle various optional fields of /proc//mountinfo on the entry/ies before the hypen + (bsc#1131982) ------------------------------------------------------------------- Mon Aug 6 13:21:20 UTC 2018 - werner@suse.de From c1e0074a3ec5379f61fc14a2a3edcbcc61cc730b3540be8ae0b792b3e46e889a Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 9 Apr 2019 13:27:13 +0000 Subject: [PATCH 3/3] . OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=233 --- powerd.spec | 2 +- sysvinit.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/powerd.spec b/powerd.spec index c8ffb70..eb332bd 100644 --- a/powerd.spec +++ b/powerd.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # diff --git a/sysvinit.spec b/sysvinit.spec index cd40d86..b19a7a8 100644 --- a/sysvinit.spec +++ b/sysvinit.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ #