Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 277591 Details for
Bug 411441
cronolog -l fails to update its symlink when log is deleted or too big
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
removes stat calls (which can fail) and use unchecked calls directly
cronolog-1.6.2-create-link.patch (text/plain), 666 bytes, created by
Arenas Belon, Carlo Marcelo
on 2007-12-05 02:57:16 UTC
(
hide
)
Description:
removes stat calls (which can fail) and use unchecked calls directly
Filename:
MIME Type:
Creator:
Arenas Belon, Carlo Marcelo
Created:
2007-12-05 02:57:16 UTC
Size:
666 bytes
patch
obsolete
>--- src/cronoutils.c.symlink 2001-05-03 09:43:21.000000000 -0700 >+++ src/cronoutils.c 2007-12-04 16:27:26.000000000 -0800 >@@ -193,20 +193,11 @@ create_link(char *pfilename, > const char *linkname, mode_t linktype, > const char *prevlinkname) > { >- struct stat stat_buf; >- >- if (stat(prevlinkname, &stat_buf) == 0) >- { >+ if (prevlinkname) { > unlink(prevlinkname); >- } >- if (stat(linkname, &stat_buf) == 0) >- { >- if (prevlinkname) { >- rename(linkname, prevlinkname); >- } >- else { >- unlink(linkname); >- } >+ rename(linkname, prevlinkname); >+ } else { >+ unlink(linkname); > } > #ifndef _WIN32 > if (linktype == S_IFLNK)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 411441
:
277591
|
279871