Accepting request 692609 from Base:System
- Add patch killproc-mntinf-optional.patch to handle various optional fields of /proc/<pid>/mountinfo on the entry/ies before the hypen (bsc#1131982) OBS-URL: https://build.opensuse.org/request/show/692609 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysvinit?expand=0&rev=169
This commit is contained in:
commit
615e035dc7
18
killproc-mntinf-optional.patch
Normal file
18
killproc-mntinf-optional.patch
Normal file
@ -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) {
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 9 13:13:42 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Add patch killproc-mntinf-optional.patch to handle various optional
|
||||
fields of /proc/<pid>/mountinfo on the entry/ies before the hypen
|
||||
(bsc#1131982)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 6 13:21:20 UTC 2018 - werner@suse.de
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user