Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
kexec-tools.2740
kexec-tools-Fix-mistaken-check-of-stat-2-return...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kexec-tools-Fix-mistaken-check-of-stat-2-return-value.patch of Package kexec-tools.2740
From 272ceb535415437041f989278635ac8de729cd6b Mon Sep 17 00:00:00 2001 From: Takao Indoh <indou.takao@jp.fujitsu.com> Date: Thu, 5 Jun 2014 14:10:55 +0900 Subject: [PATCH] Fix mistaken check of stat(2) return value get_crash_notes_per_cpu() should return -1 if return value of stat(2) is zero (on success). Signed-off-by: Takao Indoh <indou.takao@jp.fujitsu.com> Reviewed-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Acked-by: WANG Chao <chaowang@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Robert Milasan <rmilasan@suse.com> --- kexec/crashdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kexec/crashdump.c +++ b/kexec/crashdump.c @@ -84,7 +84,7 @@ int get_crash_notes_per_cpu(int cpu, uin if (fopen_errno != ENOENT) die("Could not open \"%s\": %s\n", crash_notes, strerror(fopen_errno)); - if (!stat("/sys/devices", &cpu_stat)) { + if (stat("/sys/devices", &cpu_stat)) { stat_errno = errno; if (stat_errno == ENOENT) die("\"/sys/devices\" does not exist. "
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor