From: Lucas De Marchi Date: Fri, 15 Jun 2012 05:39:34 +0000 (-0300) Subject: depmod: don't return error if modules.builtin don't exist X-Git-Tag: v9~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5db1a3fd21a53a4592ee4e8c25efde01e6e2286;p=thirdparty%2Fkmod.git depmod: don't return error if modules.builtin don't exist --- diff --git a/tools/depmod.c b/tools/depmod.c index 9c51c6ef..d8dded6d 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -2119,12 +2119,11 @@ static int output_builtin_bin(struct depmod *depmod, FILE *out) return 0; snprintf(infile, sizeof(infile), "%s/modules.builtin", - depmod->cfg->dirname); + depmod->cfg->dirname); in = fopen(infile, "r"); if (in == NULL) { - int err = -errno; WRN("could not open %s: %m\n", infile); - return err; + return 0; } idx = index_create();