Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
libjackasyn
libjackasyn-missing-close.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libjackasyn-missing-close.diff of Package libjackasyn
--- libjackasyn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/libjackasyn.c +++ b/libjackasyn.c @@ -41,12 +41,15 @@ sprintf(path,"/proc/%d/status",pid); fd = open(path,O_RDONLY); - + if (fd < 0) + return NULL; if (read(fd,namefield,256)<0) { fprintf(stderr,"libjackasyn: cannot get application name\n"); + close(fd); return NULL; } + close(fd); n = namefield + strlen("Name: "); len=0; while (*(n+len) != '\n' && len < 255) len++;
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