Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
pacemaker
pacemaker-libcrmcommon-message-cannot-open-dump...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-libcrmcommon-message-cannot-open-dump-file.patch of Package pacemaker
commit b30af11ddd465a299cf1bd66cc3c42a1ce741368 Author: Ken Gaillot <kgaillot@redhat.com> Date: Tue Apr 4 16:22:03 2017 -0500 Log: libcrmcommon: more useful message if can't open dump file also avoids a static analysis false positive Index: pacemaker/lib/common/xml.c =================================================================== --- pacemaker.orig/lib/common/xml.c +++ pacemaker/lib/common/xml.c @@ -5540,7 +5540,10 @@ dump_file(const char *filename) CRM_CHECK(filename != NULL, return); fp = fopen(filename, "r"); - CRM_CHECK(fp != NULL, return); + if (fp == NULL) { + crm_perror(LOG_ERR, "Could not open %s for reading", filename); + return; + } fprintf(stderr, "%4d ", ++line); do {
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