← Commit list

d2c6f9a1f

Glenn L McGrath
Glenn L McGrath
2004-08-11
FAILED Duration: 50s

Subject

Patch from Phil Blundellto improve substring match

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+4 -1
@@ -370,9 +370,12 @@ static int mod_strcmp ( const char *mod_path, const char *mod_name )
mod_ext = ".ko";
#endif
- return (strncmp(last_comp ? last_comp + 1 : mod_path,
+ last_comp = last_comp ? last_comp + 1 : mod_path;
+
+ return (strncmp(last_comp,
mod_name,
strlen(mod_name)) == 0 ) &&
+ ((strcmp(last_comp + strlen (mod_name), mod_ext) == 0) || last_comp[strlen(mod_name)] == 0) &&
(strcmp(mod_path + strlen(mod_path) -
strlen(mod_ext), mod_ext) == 0);
}