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
Created attachment 86244 [details] diff to alood relative paths for olddir
I've put something along these lines into CVS. Seems to pass 'make test', good enough for me :) Thanks for the patch!