Bug 78507 - request flexble handling of 'olddir'
request flexble handling of 'olddir'
Product: Red Hat Raw Hide
Classification: Retired
Component: logrotate (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
Jay Turner
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2002-11-24 17:53 EST by Marcel Mol
Modified: 2015-01-07 19:01 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-11-24 17:54:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
diff to alood relative paths for olddir (2.92 KB, patch)
2002-11-24 17:54 EST, Marcel Mol
no flags Details | Diff

  None (edit)
Description Marcel Mol 2002-11-24 17:53:42 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
olddir basicvally only works when specifying an absolute path.
I'd like to sepcify olddir as an relative path in which case the directory of
the logfile name is prepensded to it to form the actual
olddir directory

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. example logrotate.conf:

    olddir oldlogs

    /root/test.log {
        rotate 2

2. run logrotate 
3. you get an error message and logrotate quits

Actual Results:  
error: /etc/logrotate.conf:14 error verifying olddir path oldlogs: No such file
or directory

Expected Results:  It shoudl prepend '/root/' to olddir and use that als the
resulting olddir value.

Additional info:

I've a patch ready for this
Comment 1 Marcel Mol 2002-11-24 17:54:53 EST
Created attachment 86244 [details]
diff to alood relative paths for olddir
Comment 2 Elliot Lee 2002-12-10 12:50:16 EST
I've put something along these lines into CVS. Seems to pass 'make test', good enough for 
me :)

Thanks for the patch!

Note You need to log in before you can comment on or make changes to this bug.