summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.c
diff options
context:
space:
mode:
authorKarel Zak2013-10-02 14:07:32 +0200
committerKarel Zak2013-10-02 14:07:32 +0200
commitdbbf8395867804f162f550c25b56d042ce90e442 (patch)
treeff4bce4393840096b756e57d57d5c29492663d87 /sys-utils/lscpu.c
parentdocs: update TODO (diff)
downloadkernel-qcow2-util-linux-dbbf8395867804f162f550c25b56d042ce90e442.tar.gz
kernel-qcow2-util-linux-dbbf8395867804f162f550c25b56d042ce90e442.tar.xz
kernel-qcow2-util-linux-dbbf8395867804f162f550c25b56d042ce90e442.zip
lscpu: cleanup DMI code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r--sys-utils/lscpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index b266beca0..d4846e73a 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -630,7 +630,7 @@ read_hypervisor(struct lscpu_desc *desc, struct lscpu_modifier *mod)
char buf[BUFSIZ];
char *val = NULL;
- fd = path_fopen("r", 0, _PATH_PROC_STATUS);
+ fd = path_fopen("r", 1, _PATH_PROC_STATUS);
while (fgets(buf, sizeof(buf), fd) != NULL) {
if (lookup(buf, "VxID", &val))
break;