svn commit: r305748 - stable/10/cddl/lib/libdtrace

George V. Neville-Neil gnn at FreeBSD.org
Mon Sep 12 17:05:43 UTC 2016


Author: gnn
Date: Mon Sep 12 17:05:42 2016
New Revision: 305748
URL: https://svnweb.freebsd.org/changeset/base/305748

Log:
  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

Modified:
  stable/10/cddl/lib/libdtrace/psinfo.d
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/cddl/lib/libdtrace/psinfo.d
==============================================================================
--- stable/10/cddl/lib/libdtrace/psinfo.d	Mon Sep 12 17:02:22 2016	(r305747)
+++ stable/10/cddl/lib/libdtrace/psinfo.d	Mon Sep 12 17:05:42 2016	(r305748)
@@ -57,7 +57,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;


More information about the svn-src-all mailing list