← Commit list

25ea42de9

Eric Andersen
Eric Andersen
2003-06-20
FAILED Duration: 93s

Subject

Fall back to looking in /lib/modules/modules.dep if /lib/modules//modules.dep is missing

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

modutils/modprobe.c+7 -2
@@ -128,8 +128,13 @@ static struct dep_t *build_dep ( void )
strcat ( filename, un.release );
strcat ( filename, "/modules.dep" );
- if (( fd = open ( filename, O_RDONLY )) < 0 )
- return 0;
+ if (( fd = open ( filename, O_RDONLY )) < 0 ) {
+
+ /* Ok, that didn't work. Fall back to looking in /lib/modules */
+ if (( fd = open ( "/lib/modules/modules.dep", O_RDONLY )) < 0 ) {
+ return 0;
+ }
+ }
while ( reads ( fd, buffer, sizeof( buffer ))) {
int l = bb_strlen ( buffer );