Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/cmd/dtrace Undo the previous



details:   https://anonhg.NetBSD.org/src/rev/0171a4bc380f
branches:  trunk
changeset: 824452:0171a4bc380f
user:      abhinav <abhinav%NetBSD.org@localhost>
date:      Mon Jun 05 21:19:32 2017 +0000

description:
Undo the previous

While it fixed the problem of trailing spaces, but if the probe specifier
contained leading spaces, it would brake dtrace. The proper fix would be
to skip the leading spaces in the string as well.

However, it would result in a bigger diff for a very small benefit. While
a new import of dtrace is impending, it's better not to have this change.

Discussed with christos.

diffstat:

 external/cddl/osnet/dist/cmd/dtrace/dtrace.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 009c9d8726b2 -r 0171a4bc380f external/cddl/osnet/dist/cmd/dtrace/dtrace.c
--- a/external/cddl/osnet/dist/cmd/dtrace/dtrace.c      Mon Jun 05 20:02:11 2017 +0000
+++ b/external/cddl/osnet/dist/cmd/dtrace/dtrace.c      Mon Jun 05 21:19:32 2017 +0000
@@ -762,7 +762,7 @@
            dcp->dc_spec, g_cflags | DTRACE_C_PSPEC, g_argc, g_argv)) == NULL)
                dfatal("invalid probe specifier %s", dcp->dc_arg);
 
-       if ((p = strpbrk(dcp->dc_arg, "{/; ")) != NULL)
+       if ((p = strpbrk(dcp->dc_arg, "{/;")) != NULL)
                *p = '\0'; /* crop name for reporting */
 
        dcp->dc_desc = "description";



Home | Main Index | Thread Index | Old Index