]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/lscpu.c
lscpu: fix read_hypervisor_powerpc() logic
authorKarel Zak <kzak@redhat.com>
Tue, 1 Sep 2015 10:37:18 +0000 (12:37 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 1 Sep 2015 10:37:18 +0000 (12:37 +0200)
commite03b613e8d65d8e705ce5850ed05b3a156097e75
tree4b478dbd2d704a9f37621dda7c94b774c6c34ca5
parentbc8ec36f628ded08f437b9165208396b9b3b4435
lscpu: fix read_hypervisor_powerpc() logic

We care about /proc/device-tree/compatible content...

The patch also removes unnecessary path_exist(), it seems good enough
to call open() rather than access() + open().

Addresses: https://github.com/karelzak/util-linux/issues/218
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c