From 93fd4a460ef250d75f8ce164ac50b147ce8bb7ee Mon Sep 17 00:00:00 2001 From: albert <> Date: Thu, 10 Dec 2009 11:37:48 +0000 Subject: [PATCH] not ppc64 --- NEWS | 12 ++++++++++-- top.c | 4 +++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index c96d94ea..e51c91d5 100644 --- a/NEWS +++ b/NEWS @@ -1,14 +1,22 @@ +procps-3.2.8 --> procps-3.2.9 + +top: fix an aliasing problem -- thanks David Owen + procps-3.2.7 --> procps-3.2.8 ps: allow "+" in sort specifications, as in man page rh208217 -ps: document SCHED_BATCH and add "see also" for stime +ps: recognize SCHED_ISO and SCHED_IDLE +ps: document SCHED_BATCH and add a "see also" for stime ps: man page less ambiguous -top: normal exit code should be 0 #341272 #354255 rh199174 +top: normal exit code should be 0 #341272 #354255 rh199174 suse493210 +top: misc fixes pgrep: usage error should exit with 2 #413383 vmstat: use EXIT_FAILURE -- thanks Yoshio Nakamura #425492 sysctl: fix crash -- thanks Steinar Gunderson #423704 watch: tolerate umlauts #207103 +pmap: range limits with -A low,high update /dev/tty* info to May 2009 devices.txt +don't read off end of string const rh469495 rh498182 procps-3.2.6 --> procps-3.2.7 diff --git a/top.c b/top.c index e384ed62..b3f69d76 100644 --- a/top.c +++ b/top.c @@ -2190,7 +2190,9 @@ static void reframewins (void) // Value a window's name and make the associated group name. static void win_names (WIN_t *q, const char *name) { - if(q->rc.winname != name) // src==dst is illegal, failing on ppc64 + // Note that src==dst is illegal in sprintf. + // Failure: amd64, glibc 2.9-20081201, gcc 4.3.4 + if(q->rc.winname != name) sprintf(q->rc.winname, "%.*s", WINNAMSIZ -1, name); sprintf(q->grpname, "%d:%.*s", q->winnum, WINNAMSIZ -1, name); }