← Commit list

70112da81

Robert Griebl
Robert Griebl
2002-07-29
FAILED Duration: 9s

Subject

Fixed a bug that I had introduced with the new "options" handling.

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+8 -7
@@ -349,16 +349,17 @@ static void check_dep ( char *mod, struct mod_list_t **head, struct mod_list_t *
struct dep_t *adt;
for ( adt = depend; adt; adt = adt-> m_next ) {
- if ( strcmp ( adt-> m_module, dt-> m_deparr [0] ) == 0 ) {
- if ( !opt )
- opt = adt-> m_options;
+ if ( strcmp ( adt-> m_module, dt-> m_deparr [0] ) == 0 )
break;
- }
}
- if ( !adt )
- return;
+ if ( adt ) {
+ dt = adt;
+ mod = dt-> m_module;
+ if ( !opt )
+ opt = dt-> m_options;
+ }
else
- dt = adt;
+ return;
}
else
return;