Commit 4b57916a authored by albert's avatar albert

ps --sort bug

parent 77f16a7b
......@@ -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
......
......@@ -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
......
......@@ -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;
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment