]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
libkmod: modinfo: fix sig_id output
authorYauheni Kaliuta <yauheni.kaliuta@redhat.com>
Tue, 11 Apr 2017 12:15:00 +0000 (15:15 +0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 11 Apr 2017 16:04:28 +0000 (09:04 -0700)
For some reason the key for sig_id was set to "signature". The
length was calculated against the proper string, as the result in
the output it was truncated to "signat".

Pass the proper key to the kmod_module_info_append() call.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
libkmod/libkmod-module.c

index 57da0a2d11479d8e1ee85afd10e95f38f0817a19..34c7f76e4db50e841ee171fdd79a194352893305 100644 (file)
@@ -2257,7 +2257,7 @@ KMOD_EXPORT int kmod_module_get_info(const struct kmod_module *mod, struct kmod_
                struct kmod_list *n;
                char *key_hex;
 
-               n = kmod_module_info_append(list, "signature", strlen("sig_id"),
+               n = kmod_module_info_append(list, "sig_id", strlen("sig_id"),
                                sig_info.id_type, strlen(sig_info.id_type));
                if (n == NULL)
                        goto list_error;