← Commit list

3ba7ceebf

Robert Griebl
Robert Griebl
2002-12-03
FAILED Duration: 6s

Subject

print an error message if we can't load a module

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 -2
@@ -540,8 +540,10 @@ extern int modprobe_main(int argc, char** argv)
if (optind >= argc)
error_msg_and_die ( "No module or pattern provided\n" );
- return mod_insert ( xstrdup ( argv [optind] ), argc - optind - 1, argv + optind + 1 ) ? \
- EXIT_FAILURE : EXIT_SUCCESS;
+ if ( mod_insert ( xstrdup ( argv [optind] ), argc - optind - 1, argv + optind + 1 ))
+ error_msg_and_die ( "failed to load module %s", argv [optind] );
+
+ return EXIT_SUCCESS;
}