Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Apache
cronolog
cronolog_avoid_empty_filename.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cronolog_avoid_empty_filename.patch of Package cronolog
Index: cronolog-1.7.0/src/cronoutils.c =================================================================== --- cronolog-1.7.0.orig/src/cronoutils.c +++ cronolog-1.7.0/src/cronoutils.c @@ -195,11 +195,11 @@ create_link(char *pfilename, { struct stat stat_buf; - if (lstat(prevlinkname, &stat_buf) == 0) + if (prevlinkname && stat(prevlinkname, &stat_buf) == 0) { - unlink(prevlinkname); + unlink(prevlinkname); } - if (lstat(linkname, &stat_buf) == 0) + if (linkname && stat(linkname, &stat_buf) == 0) { if (prevlinkname) { rename(linkname, prevlinkname);
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