]> git.ipfire.org Git - thirdparty/kmod.git/blobdiff - tools/depmod.c
depmod: fix modules.builtin.alias.bin output
[thirdparty/kmod.git] / tools / depmod.c
index 170a1d8d3f3d0564f129baa87cfb5c9849868f77..eb810b811e359e49cf3a77c722b5c5b0e4771d38 100644 (file)
@@ -2457,7 +2457,7 @@ static int output_builtin_alias_bin(struct depmod *depmod, FILE *out)
 
 out:
        /* do not bother writing the index if we are going to discard it */
-       if (!ret)
+       if (ret > 0)
                index_write(idx, out);
 
        if (builtin)