Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Evergreen:11.2:Test
salinfo
salinfo-1.2.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File salinfo-1.2.diff of Package salinfo
--- salinfo_decode.c +++ salinfo_decode.c @@ -303,7 +303,7 @@ log_dropped_records(void) snprintf(line, sizeof(line), ", %d %s", dropped_all[i]->dropped, dropped_all[i]->name); dropped_all[i]->dropped = 0; - strncat(log, line, sizeof(log)); + strncat(log, line, sizeof(log) - strlen(log) - 1); } } syslog(LOG_NOTICE, "%s", log); @@ -424,7 +424,7 @@ talk_to_sal (void) int fd; char filename[PATH_MAX]; snprintf(filename, sizeof(filename), "%s/%s/.check", directory, rd[i]); - if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC)) < 0) { + if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) { perror(filename); goto out; }
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