ps: Increase command selection field to 64
The library now presents command names up to 64 characters, in line with
the kernel changes. ps command name selection (the -C option) now also
is 64 characters long.
References:
commit 2cfdbbe897
This commit is contained in:
parent
2fed385ac2
commit
14005a371e
1
NEWS
1
NEWS
@ -10,6 +10,7 @@ procps-ng-3.3.15
|
|||||||
* library: Fix integer overflow and LPE in file2strvec CVE-2018-1124
|
* library: Fix integer overflow and LPE in file2strvec CVE-2018-1124
|
||||||
* library: Use size_t for alloc functions CVE-2018-1126
|
* library: Use size_t for alloc functions CVE-2018-1126
|
||||||
* library: Increase comm size to 64
|
* library: Increase comm size to 64
|
||||||
|
* ps: Increase command name selection field to 64
|
||||||
* top: Don't use cwd for location of config CVE-2018-1122
|
* top: Don't use cwd for location of config CVE-2018-1122
|
||||||
|
|
||||||
procps-ng-3.3.14
|
procps-ng-3.3.14
|
||||||
|
@ -189,7 +189,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 {
|
||||||
|
@ -117,7 +117,7 @@ static int proc_was_listed(proc_t *buf){
|
|||||||
break; case SEL_SESS: return_if_match(session,pid);
|
break; case SEL_SESS: return_if_match(session,pid);
|
||||||
|
|
||||||
break; case SEL_COMM: i=sn->n; while(i--)
|
break; case SEL_COMM: i=sn->n; while(i--)
|
||||||
if(!strncmp( buf->cmd, (*(sn->u+i)).cmd, 15 )) return 1;
|
if(!strncmp( buf->cmd, (*(sn->u+i)).cmd, 63 )) return 1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user