summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/load_aout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/common/load_aout.c')
-rw-r--r--sys/boot/common/load_aout.c7
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 */
OpenPOWER on IntegriCloud