Bug 82808
| Summary: | olddir directive broken (or changed?) | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Public Beta | Reporter: | James Ralston <ralston> |
| Component: | logrotate | Assignee: | Elliot Lee <sopwith> |
| Status: | CLOSED RAWHIDE | QA Contact: | Jay Turner <jturner> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | phoebe | CC: | srevivo |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2003-02-18 05:29:22 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: | |||
What logrotate version are you running (logrotate, not logwatch)? Argh... I apologize for my inability to differentiate LOGWATCH from LOGROTATE. (This isn't the first time...) $ rpm -qa | grep -i ^log | sort logrotate-3.6.6-1 logwatch-4.3.1-1 I grabbed logrotate-3.6.8-1 from Rawhide, and this bug is fixed; the olddir directive is correctly interpreted as an absolute path (the same as previous versions). Danke; I'm closing this report. |
Description of problem: The "olddir" directive appears to be broken. Specifically, the olddir option now seems to be interpreted relative to the directory which contains the logfile being processed. (The previous behavior was that olddir specified an absolute directory.) If this is an intentional change, then please update the documentation (i.e., the man page) to reflect the change. Version-Release number of selected component (if applicable): logwatch-4.3.1-1 How reproducible: Replace the contents of /etc/logrotate.d/rpm with this: /var/log/rpmpkgs { daily notifempty missingok rotate 7 olddir /var/log/OLD nocompress sharedscripts } Then run: /usr/sbin/logrotate --debug=100 /etc/logrotate.conf Actual results: error: rpm:9 error verifying olddir path /var/log//var/log/OLD: No such file or directory Expected results: Logrotate puts the rotated log files in /var/log/OLD.