From 256038b0e9421513dbaca476be486f3738ca4e78 Mon Sep 17 00:00:00 2001 From: Boris Popov Date: Sat, 3 Jun 2000 06:18:39 +0000 Subject: MFC of rev 1.27. A correction to the code which attempts to prevent the same module being loaded twice. PR: kern/11919 --- sys/kern/kern_linker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 51e5dd991f44..9783afb22e2f 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -714,7 +714,8 @@ kldfind(struct proc* p, struct kldfind_args* uap) modulename = rindex(filename, '/'); if (modulename == NULL) modulename = filename; - + else + modulename++; lf = linker_find_file_by_name(modulename); if (lf) p->p_retval[0] = lf->id; -- cgit v1.2.3