Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
sblim-cmpi-syslog
sblim-cmpi-syslog-0.7.11-missing-fclose.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sblim-cmpi-syslog-0.7.11-missing-fclose.patch of Package sblim-cmpi-syslog
Index: syslog-service/util/syslogserviceutil.c =================================================================== --- syslog-service/util/syslogserviceutil.c.orig +++ syslog-service/util/syslogserviceutil.c @@ -141,12 +141,18 @@ int Syslog_Service_Operation(const char return -1; if (op && tmpnam(cmdout)) { sprintf(cmdbuffer, "syslog-service.sh %s > %s", op, cmdout); - if (system(cmdbuffer)==0 && (fcmdout = fopen(cmdout,"r")) && - fgets(result,resultlen,fcmdout)) { + if (system(cmdbuffer)!=0) + goto err; + if (!(fcmdout = fopen(cmdout,"r"))) + goto err; + if (fgets(result,resultlen,fcmdout)) { + fclose(fcmdout); return 0; - } + } + fclose(fcmdout); } +err: return 1; }
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