diff --git a/procps-ng.spec b/procps-ng.spec index 3109487..9e839d5 100644 --- a/procps-ng.spec +++ b/procps-ng.spec @@ -4,7 +4,7 @@ Summary: System and process monitoring utilities Name: procps-ng Version: 3.3.17 -Release: 13%{?dist} +Release: 14%{?dist} License: GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+ URL: https://sourceforge.net/projects/procps-ng/ @@ -26,6 +26,7 @@ Patch8: display-sig-unsafe.patch Patch9: ps-out-of-bonds-read.patch Patch10: sysctl-nameonly-shows-value.patch Patch11: cve-2023-4016.patch +Patch12: top-invisible-tasks-if-memsort.patch BuildRequires: make @@ -168,6 +169,10 @@ ln -s %{_bindir}/pidof %{buildroot}%{_sbindir}/pidof %files i18n -f %{name}.lang %changelog +* Mon Jan 22 2024 Jan Rybar - 3.3.17-14 +- top: processes for specific user not displayed if sorted by mem +- Resolves: RHEL-16278 + * Fri Aug 11 2023 Jan Rybar - 3.3.17-13 - ps: mitigation of possible buffer overflow - Resolves: rhbz#2228504 diff --git a/top-invisible-tasks-if-memsort.patch b/top-invisible-tasks-if-memsort.patch new file mode 100644 index 0000000..5c42d61 --- /dev/null +++ b/top-invisible-tasks-if-memsort.patch @@ -0,0 +1,12 @@ +diff --git a/top/top.c b/top/top.c +index 58badaa..21fab42 100644 +--- a/top/top.c ++++ b/top/top.c +@@ -5704,6 +5704,7 @@ static void keys_xtra (int ch) { + switch (ch) { + case 'M': + w->rc.sortindx = EU_MEM; ++ mkVIZrow1(w); // we need to avoid hiding tasks if scrolled too much + // xmsg = "Memory"; + break; + case 'N':