Bug 129551
| Summary: | logrotate does not pass log file name to pre/postrotate scripts | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Andreas Karrer <karrer> |
| Component: | logrotate | Assignee: | Cristian Gafton <gafton> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-02-21 19:05:03 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Andreas Karrer
2004-08-10 11:02:55 UTC
The second argument of execlp is argv0, the name of the process.
The log file name to be passted to the pre/postrotate script should
be passed as the *3rd* argument.
--- logrotate.c.orig 2004-01-26 21:08:04.000000000 +0100
+++ logrotate.c 2004-08-10 13:07:24.000000000 +0200
@@ -110,7 +110,7 @@
close(fd);
if (!fork()) {
- execlp(filespec, logfn, NULL);
+ execlp(filespec, filespec, logfn, NULL);
exit(1);
}
*** This bug has been marked as a duplicate of 126490 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |