Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 78507

Summary: request flexble handling of 'olddir'
Product: [Retired] Red Hat Raw Hide Reporter: Marcel Mol <marcel>
Component: logrotateAssignee: Elliot Lee <sopwith>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: srevivo
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-11-24 22:54:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
diff to alood relative paths for olddir none

Description Marcel Mol 2002-11-24 22:53:42 UTC
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:
Always

Steps to Reproduce:
1. example logrotate.conf:

    olddir oldlogs

    /root/test.log {
        daily
        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 22:54:53 UTC
Created attachment 86244 [details]
diff to alood relative paths for olddir

Comment 2 Elliot Lee 2002-12-10 17:50:16 UTC
I've put something along these lines into CVS. Seems to pass 'make test', good enough for 
me :)

Thanks for the patch!