summaryrefslogtreecommitdiffstats
path: root/cddl/lib
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2016-09-12 17:02:22 +0000
committergnn <gnn@FreeBSD.org>2016-09-12 17:02:22 +0000
commit4fad802c4472b62f310fbda8601c80b846f7a1f0 (patch)
tree4775f23b24c0ba695bcc59e29d1be95187497c92 /cddl/lib
parent1b175a7ae733dc8fcef0b2b7e1ce400bd257cea0 (diff)
downloadFreeBSD-src-4fad802c4472b62f310fbda8601c80b846f7a1f0.zip
FreeBSD-src-4fad802c4472b62f310fbda8601c80b846f7a1f0.tar.gz
MFC: 304825
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 Sponsored by: DARPA, AFRL
Diffstat (limited to 'cddl/lib')
-rw-r--r--cddl/lib/libdtrace/psinfo.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/lib/libdtrace/psinfo.d b/cddl/lib/libdtrace/psinfo.d
index 1b13863..c391804 100644
--- a/cddl/lib/libdtrace/psinfo.d
+++ b/cddl/lib/libdtrace/psinfo.d
@@ -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;
OpenPOWER on IntegriCloud