Merge "Fix ps <process name>"
This commit is contained in:
commit
cb8c583d49
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ static int ps_line(int pid, int tid, char *namefilter)
|
|||
strcpy(user,pw->pw_name);
|
||||
}
|
||||
|
||||
if(!namefilter || !strncmp(name, namefilter, strlen(namefilter))) {
|
||||
if(!namefilter || !strncmp(cmdline[0] ? cmdline : name, namefilter, strlen(namefilter))) {
|
||||
if (display_flags & SHOW_MACLABEL) {
|
||||
fd = open(macline, O_RDONLY);
|
||||
strcpy(macline, "-");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue