]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: allow read_cache() to be called for offline cpus
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 6 Sep 2011 00:52:55 +0000 (02:52 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Sep 2011 04:30:06 +0000 (06:30 +0200)
commitdcdead4271232c5638afdc8bc99cf792383eb27f
tree8879dc7fb9fb3c313fdd56b34238b47fa8cdbc38
parentf6512068b2d0d424dc5aa125c0ba2fe411acd305
lscpu: allow read_cache() to be called for offline cpus

First check path before accessing files to be sure they actually exist. This is
necessary when also informations for offline CPUs will be printed.  Since we do
not necessarily know if "cpu is offline" means the same as "path does not
exist" just check for it.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/lscpu.c