procps/procps-ng-3.3.10-errno.patch

49 lines
1.4 KiB
Diff
Raw Normal View History

setlocale() sets errno to ENOENT ...
open("/usr/lib/locale/de_DE.UTF-8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 3
and this causes a problem later on (bsc#908516)
---
free.c | 5 +++++
1 file changed, 5 insertions(+)
Accepting request 283978 from Base:System - Update tp procps-ng-3.3.10 * sysctl --system loads default config file - Debian #732920 * ps doesn't exit on SIGCONT * top better accommodates discontinuous NUMA nodes * ps cmdline trailing spaces suppressed under zsh, redhat #1057600 * kill restores the '-HUP -1' functionality * vmstat -d / -p segfault eliminated when /sys is not mounted * pgrep properly shows full command line when -au are combined * vmstat supports timestamps with -t/--timestamp option * top is now immune to distortions when system time is reset * top standardized the <Esc> key support with prompted input * top missing summary area info added to man document, ubuntu #574624 * top properly responds to the current locale LC_NUMERIC setting * top provides alternate graph modes for cpu states and memory usage * top offers new startup defaults, plus ./configure --disable-modern-top * top exploits MemAvailable field and offers improved memory statistics * ps new --quick-pid option, a more efficient alternative to --pid option * usernames up to 32 characters now accommodated (up from 19), redhat #1112734 * free exploits MemAvailable field and offers improved memory statistics * free considers slabs in displayed totals, debian #565518, ubuntu #126329 * watch supports new ANSI styles and background colors - Remove the patches now upstream 0023-top-do-not-forget-the-fscanf-s-terminating-null-byte.patch 0024-sysctl-system-loads-default-config-file.patch 0025-Split-help-lines-to-help-translators.patch 0026-library-fixing-uninitialized-variable-pos-in-whattim.patch 0027-pgrep-Fixing-memory-leak-in-do_regcomp.patch 0028-sysctl-Fixing-memory-leaks-in-PreloadSystem.patch 0029-ps-ignore-SIGCONT.patch 0031-vmstat-wide-output-still-not-wide-enough.patch OBS-URL: https://build.opensuse.org/request/show/283978 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/procps?expand=0&rev=91
2015-02-06 10:44:35 +01:00
--- free.c
+++ free.c 2018-04-04 12:47:06.360757839 +0000
@@ -197,6 +197,7 @@ int main(int argc, char **argv)
{
int c, flags = 0, unit_set = 0;
struct commandline_arguments args;
+ int errsv;
/*
* For long options that have no equivalent short option, use a
@@ -247,10 +248,12 @@ int main(int argc, char **argv)
#ifdef HAVE_PROGRAM_INVOCATION_NAME
program_invocation_name = program_invocation_short_name;
#endif
+ errsv = errno;
setlocale (LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
atexit(close_stdout);
+ errno = errsv;
while ((c = getopt_long(argc, argv, "bkmghltCc:ws:V", longopts, NULL)) != -1)
switch (c) {
@@ -317,11 +320,13 @@ int main(int argc, char **argv)
break;
case 's':
flags |= FREE_REPEAT;
+ errsv = errno;
errno = 0;
Accepting request 418010 from Base:System - Avoid fillup and insserv on modern systems (bsc#992845) - Use test suite but avoid the w command due dummy utmp * This requires dejagnu for the runtest command * This requires screen to be able to provide a tty - Add patch procps-ng-3.3.12-strtod.patch to fix missed extern declaration of strtod_nol_or_err() - Update to procps-ng-3.3.12 * libprocps API 6:0:0 * build: formerly optional --enable-oomem unconditional * free: man document rewritten for shared Debian #755233 * free: interpret intervals in non-locale way Debian #692113 * kill: report error if cannot kill process Debian #733172 * library: refine calculation of 'cached' memory * library: find tty quicker Debian #770215 * library: eliminate threads display inconsistencies Redhat #1284091 * pidof: check cmd if space found in argv0 * pmap: fixed detail parsing on long mapping lines * pmap: fix occasional incorrect memory usage values Redhat #1262864 * ps: sort by cgroup Debian #692279 * ps: display control group name with -o cgname * ps: fallback to attr/current for context Debian #786956 * ps: enabled broken 'thcount' option Redhat #1174313 * tests: conditionally add prctl Debian #816237 * top: displays the 3 new linux-4.5 RES memory fields * top: man page memory fields corrected + new narrative * top: added display of CGNAME (control group name) * top: is now more responsive to cpus brought online * top: namespace cols use suppressible zero OBS-URL: https://build.opensuse.org/request/show/418010 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/procps?expand=0&rev=99
2016-08-18 09:15:06 +02:00
args.repeat_interval = (1000000 * strtod_nol_or_err(optarg, "seconds argument failed"));
if (args.repeat_interval < 1)
xerrx(EXIT_FAILURE,
_("seconds argument `%s' is not positive number"), optarg);
+ errno = errsv;
break;
case 'c':
flags |= FREE_REPEAT;