]> 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>
Tue, 18 Oct 2011 12:22:26 +0000 (14:22 +0200)
commit66c200adbcffba12cc0e51eb30ba92609a4b3b6e
tree8850110bd0e53a57d137dbca201da622a0af053f
parent4f02e85bea6ffd5409e382a8d9e689a7c0c7068c
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