From 4b57916ac933e3d99a01ae3680cd6cd41973bc68 Mon Sep 17 00:00:00 2001 From: albert <> Date: Mon, 14 Oct 2002 05:12:14 +0000 Subject: [PATCH] ps --sort bug --- ChangeLog | 5 +++++ NEWS | 4 ++++ ps/display.c | 2 ++ ps/sortformat.c | 1 + 4 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2488d85e..e733f901 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,11 @@ more "make install" fixes lib CFLAGS working again top.1 codes fixed bad (int*) cast in top removed +top runs faster +libproc memory corruption fixed +rant moved out of top.1 man page +ability to SKIP installing things +fixed ps --sort crash procps-3.0.1 --> procps-3.0.2 diff --git a/NEWS b/NEWS index 9e40d5c7..e733f901 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,10 @@ lib CFLAGS working again top.1 codes fixed bad (int*) cast in top removed top runs faster +libproc memory corruption fixed +rant moved out of top.1 man page +ability to SKIP installing things +fixed ps --sort crash procps-3.0.1 --> procps-3.0.2 diff --git a/ps/display.c b/ps/display.c index beca76ec..8a444f6f 100644 --- a/ps/display.c +++ b/ps/display.c @@ -266,6 +266,7 @@ static void prep_forest_sort(void){ tmp_list->reverse = 0; tmp_list->typecode = '?'; /* what was this for? */ tmp_list->sr = incoming->sr; + tmp_list->need = incoming->need; tmp_list->next = sort_list; sort_list = tmp_list; } @@ -276,6 +277,7 @@ static void prep_forest_sort(void){ tmp_list->reverse = 0; tmp_list->typecode = '?'; /* what was this for? */ tmp_list->sr = incoming->sr; + tmp_list->need = incoming->need; tmp_list->next = sort_list; sort_list = tmp_list; } diff --git a/ps/sortformat.c b/ps/sortformat.c index 52acbeae..3a5076d5 100644 --- a/ps/sortformat.c +++ b/ps/sortformat.c @@ -311,6 +311,7 @@ static sort_node *do_one_sort_spec(const char *spec){ sort_node *thisnode; thisnode = malloc(sizeof(format_node)); thisnode->sr = fs->sr; + thisnode->need = fs->need; thisnode->reverse = reverse; thisnode->next = NULL; return thisnode;