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/lib/libdtrace/common machdep.booted...



details:   https://anonhg.NetBSD.org/src/rev/e45ffba78512
branches:  trunk
changeset: 346795:e45ffba78512
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 03 16:37:02 2016 +0000

description:
machdep.booted_kernel is not an absolute path, make it so. Now u_int is
found but its parent is not :-)

diffstat:

 external/cddl/osnet/dist/lib/libdtrace/common/dt_module.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 8a3020e7c55a -r e45ffba78512 external/cddl/osnet/dist/lib/libdtrace/common/dt_module.c
--- a/external/cddl/osnet/dist/lib/libdtrace/common/dt_module.c Wed Aug 03 15:59:58 2016 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/dt_module.c Wed Aug 03 16:37:02 2016 +0000
@@ -1180,8 +1180,9 @@
        size_t len;
 
        if (strcmp("netbsd", name) == 0) {
-               /* want the kernel */
-               dt_bootfile(fname, sizeof(fname));
+               /* want the kernel, but it is not absolute */
+               dt_bootfile(machine, sizeof(machine));
+               snprintf(fname, sizeof(fname), "/%s", machine);
        } else {
 
                /* build stand module path from system */



Home | Main Index | Thread Index | Old Index