ps: increase command name length to 64 ____ (catch up)

Reference(s):
. orginal master branch commit, 5/19/18
commit 14005a371e

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2019-08-15 00:00:00 -05:00 committed by Craig Small
parent 34a5ea71cd
commit 3860f39b3e
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ typedef union sel_union {
uid_t uid; uid_t uid;
gid_t gid; gid_t gid;
dev_t tty; dev_t tty;
char cmd[16]; /* this is _not_ \0 terminated */ char cmd[64]; /* this is _not_ \0 terminated */
} sel_union; } sel_union;
typedef struct selection_node { typedef struct selection_node {

View File

@ -114,7 +114,7 @@ static int proc_was_listed(proc_t *buf){
break; case SEL_SESS: return_if_match(rSv(ID_SESSION, s_int, buf),pid); break; case SEL_SESS: return_if_match(rSv(ID_SESSION, s_int, buf),pid);
break; case SEL_COMM: i=sn->n; while(i--) break; case SEL_COMM: i=sn->n; while(i--)
if(!strncmp( rSv(CMD, str, buf), (*(sn->u+i)).cmd, 15 )) return 1; if(!strncmp( rSv(CMD, str, buf), (*(sn->u+i)).cmd, 63 )) return 1;
#undef return_if_match #undef return_if_match