aboutsummaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2016-08-25 23:24:57 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2016-08-25 23:24:57 +0000
commit11e72c3b25737e984f4e4f4a21ef6a15f7f4ae39 (patch)
tree43f556bbb6985073a39e3935ca27b221b999763e /cddl
parenta95e0bfb6c4bc27ed20ebd4c1c82161519fec398 (diff)
downloadsrc-11e72c3b25737e984f4e4f4a21ef6a15f7f4ae39.tar.gz
src-11e72c3b25737e984f4e4f4a21ef6a15f7f4ae39.zip
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
Notes
Notes: svn path=/head/; revision=304825
Diffstat (limited to 'cddl')
-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 1b13863df0e3..c391804e101d 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;