]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
tools/modprobe: exit non-zero on module not found with --all
authorDave Reisner <d@falconindy.com>
Fri, 6 Jan 2012 03:56:54 +0000 (22:56 -0500)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 6 Jan 2012 04:33:58 +0000 (02:33 -0200)
tools/kmod-modprobe.c

index 8286b9b718c266f50ccb8ec05bb077a2b6ede408..6ca94f29237c730fe5eb943f0bf9dd5853f25912 100644 (file)
@@ -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) {