From: Dave Reisner Date: Fri, 6 Jan 2012 03:56:54 +0000 (-0500) Subject: tools/modprobe: exit non-zero on module not found with --all X-Git-Tag: v4~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f3749137527a8e009bd0c928b754b560c51c068;p=thirdparty%2Fkmod.git tools/modprobe: exit non-zero on module not found with --all --- diff --git a/tools/kmod-modprobe.c b/tools/kmod-modprobe.c index 8286b9b7..6ca94f29 100644 --- a/tools/kmod-modprobe.c +++ b/tools/kmod-modprobe.c @@ -856,7 +856,7 @@ static int insmod_alias(struct kmod_ctx *ctx, const char *alias, const char *ext if (list == NULL) { LOG("Module %s not found.\n", alias); - return err; + return -ENOENT; } if (use_blacklist) {