diff --git a/procps-3.3.17-ignore-sysctl_conf.patch b/procps-3.3.17-ignore-sysctl_conf.patch new file mode 100644 index 0000000..4cfecee --- /dev/null +++ b/procps-3.3.17-ignore-sysctl_conf.patch @@ -0,0 +1,11 @@ +--- procps-3.3.17/sysctl.c.old 2021-02-09 11:11:25.000000000 +0100 ++++ procps-3.3.17/sysctl.c 2023-12-14 13:56:36.785976315 +0100 +@@ -546,6 +546,8 @@ + fp = (globbuf.gl_pathv[j][0] == '-' && !globbuf.gl_pathv[j][1]) + ? stdin : fopen(globbuf.gl_pathv[j], "r"); + if (!fp) { ++ if (strcmp ("/usr/lib/sysctl.d/99-sysctl.conf", globbuf.gl_pathv[j]) == 0) ++ continue; + xwarn(_("cannot open \"%s\""), globbuf.gl_pathv[j]); + rc = -1; + goto out; diff --git a/procps.changes b/procps.changes index 6b54df8..4f1a738 100644 --- a/procps.changes +++ b/procps.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 14 13:26:05 UTC 2023 - Thorsten Kukuk + +- procps-3.3.17-ignore-sysctl_conf.patch: ignore dangling symlink + to missing /etc/sysctl.conf file [bsc#1217990] + ------------------------------------------------------------------- Mon Oct 30 07:03:50 UTC 2023 - Thorsten Kukuk diff --git a/procps.spec b/procps.spec index e5eae6a..71fc07f 100644 --- a/procps.spec +++ b/procps.spec @@ -70,6 +70,7 @@ Patch36: CVE-2023-4016.patch Patch42: procps-3.3.17-library-bsc1181475.patch Patch43: procps-3.3.17-top-bsc1181475.patch Patch44: procps-ng-3.3.17-logind.patch +Patch45: procps-3.3.17-ignore-sysctl_conf.patch BuildRequires: automake BuildRequires: dejagnu BuildRequires: diffutils @@ -156,6 +157,7 @@ the process information pseudo-file system. %patch42 %patch43 %patch44 -p1 +%patch45 -p1 %build test -s .tarball-version || echo %{version} > .tarball-version