Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Rings:1-MinimalX
sysvinit
sysvinit-2.88+dsf-sulogin.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sysvinit-2.88+dsf-sulogin.diff of Package sysvinit
Index: src/killall5.c =================================================================== --- src/killall5.c (revision 116) +++ src/killall5.c (working copy) @@ -508,9 +508,11 @@ /* Read SID & statname from it. */ if ((fp = fopen(path, "r")) != NULL) { - if (!fgets(buf, sizeof(buf), fp)) - buf[0] = '\0'; + size_t len; + len = fread(buf, sizeof(char), sizeof(buf)-1, fp); + buf[len] = '\0'; + if (buf[0] == '\0') { nsyslog(LOG_ERR, "can't read from %s\n", path);
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