FreeBSD Bugzilla – Attachment 16811 Details for
Bug 30683
[PATCH] loader(8) fails to load module which has dependencies
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 726 bytes, created by
HARASHINO Makoto
on 2001-09-20 13:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
HARASHINO Makoto
Created:
2001-09-20 13:30:01 UTC
Size:
726 bytes
patch
obsolete
>diff -ru boot.orig/common/module.c boot/common/module.c >--- boot.orig/common/module.c Wed Jun 13 03:10:35 2001 >+++ boot/common/module.c Thu Sep 20 09:24:37 2001 >@@ -365,12 +365,20 @@ > return (0); > error = 0; > do { >+ char* tmp; > dmodname = (char *)md->md_data; >- if (mod_findmodule(NULL, dmodname) == NULL) { >+ tmp = malloc(strlen(dmodname) + 3 + 1); >+ strcpy(tmp, dmodname); >+ strcat(tmp, ".ko"); >+ if (mod_findmodule(tmp, NULL) == NULL) { >+ free(tmp); > printf("loading required module '%s'\n", dmodname); > error = mod_load(dmodname, 0, NULL); > if (error && error != EEXIST) > break; >+ error = 0; >+ } else { >+ free(tmp); > } > md = metadata_next(md, MODINFOMD_DEPLIST); > } while (md);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 30683
: 16811