Unlike Solaris, in FreeBSD p_args can be 0 so check for that
instead of walking down to ar_args blindly. Reported by: Amanda Strnad Reviewed by: markj, jhb MFC after: 2 weeks Sponsored by: DARPA, AFRL
This commit is contained in:
parent
a95e0bfb6c
commit
11e72c3b25
@ -59,7 +59,7 @@ translator psinfo_t < struct proc *T > {
|
||||
pr_gid = T->p_ucred->cr_rgid;
|
||||
pr_egid = T->p_ucred->cr_groups[0];
|
||||
pr_addr = 0;
|
||||
pr_psargs = (T->p_args->ar_args == 0) ? "" :
|
||||
pr_psargs = (T->p_args == 0) ? "" :
|
||||
memstr(T->p_args->ar_args, ' ', T->p_args->ar_length);
|
||||
pr_arglen = T->p_args->ar_length;
|
||||
pr_jailid = T->p_ucred->cr_prison->pr_id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user