diff options
author | peter <peter@FreeBSD.org> | 2001-09-11 01:09:24 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-09-11 01:09:24 +0000 |
commit | 808991de7cecc9e774ffe5031e29362207e75564 (patch) | |
tree | 7b0e7fbc20bd6b09f4224a1d0187a77c9f747184 /sys/boot/common/load_aout.c | |
parent | f07a058a30186a596af1595909ea89573a1a794f (diff) | |
download | FreeBSD-src-808991de7cecc9e774ffe5031e29362207e75564.zip FreeBSD-src-808991de7cecc9e774ffe5031e29362207e75564.tar.gz |
Implement the long-awaited module->file cache database. A userland
tool (kldxref(8)) keeps a cache of what modules and versions are inside
what .ko files. I have tested this on both Alpha and i386.
Submitted by: bp
Diffstat (limited to 'sys/boot/common/load_aout.c')
-rw-r--r-- | sys/boot/common/load_aout.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/boot/common/load_aout.c b/sys/boot/common/load_aout.c index 8867815..e2a9643 100644 --- a/sys/boot/common/load_aout.c +++ b/sys/boot/common/load_aout.c @@ -64,7 +64,6 @@ aout_loadfile(char *filename, vm_offset_t dest, struct preloaded_file **result) vm_offset_t addr; int err, kernel; u_int pad; - char *s; fp = NULL; @@ -134,11 +133,7 @@ aout_loadfile(char *filename, vm_offset_t dest, struct preloaded_file **result) fp = file_alloc(); if (kernel) setenv("kernelname", filename, 1); - s = strrchr(filename, '/'); - if (s) - fp->f_name = strdup(s + 1); - else - fp->f_name = strdup(filename); + fp->f_name = strdup(filename); fp->f_type = strdup(kernel ? aout_kerneltype : aout_moduletype); /* Page-align the load address */ |