procps-3.1.11 --> procps-3.1.12
+top: multiple -p options work again
top: fixed 4 GB wrap-around
ps: comes with tests
man page: /var/run/utmp, not /etc/utmp #206583
break;
case 'p':
do {
- if (selection_type) std_err("conflicting process selection");
+ if (selection_type && selection_type != 'p') std_err("conflicting process selection");
selection_type = 'p';
if (cp[1]) cp++;
else if (*args) cp = *args++;
case 'u':
do {
const char *errmsg;
- if (selection_type) std_err("conflicting process selection");
+ if (selection_type /* && selection_type != 'u' */) std_err("conflicting process selection");
if (cp[1]) cp++;
else if (*args) cp = *args++;
else std_err("-u missing name");
case 'U':
do {
const char *errmsg;
- if (selection_type) std_err("conflicting process selection");
+ if (selection_type && /* selection_type != 'U' */) std_err("conflicting process selection");
if (cp[1]) cp++;
else if (*args) cp = *args++;
else std_err("-u missing name");