diff options
author | Yauheni Kaliuta <yauheni.kaliuta@redhat.com> | 2017-04-11 15:15:00 +0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2017-04-11 09:04:28 -0700 |
commit | 30fb14f3c81ec5b0a5ef5b4b1c998a7de5420328 (patch) | |
tree | af070f2597e59ff7a6d3d13d7718c87536dfa5b7 /libkmod/libkmod-module.c | |
parent | ef4257b59c4307b8c627d89f3c7f1feedb32582f (diff) | |
download | kmod-30fb14f3c81ec5b0a5ef5b4b1c998a7de5420328.tar.gz kmod-30fb14f3c81ec5b0a5ef5b4b1c998a7de5420328.tar.bz2 kmod-30fb14f3c81ec5b0a5ef5b4b1c998a7de5420328.zip |
libkmod: modinfo: fix sig_id output
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>
Diffstat (limited to 'libkmod/libkmod-module.c')
-rw-r--r-- | libkmod/libkmod-module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index 57da0a2..34c7f76 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -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; |