Skip to content

[9.18] Fix purging old log files with absolute file path

Matthijs Mekking requested to merge 3991-logfile-absolutepath-bug-v9_18 into bind-9.18

Backport of MR !7809 (merged)

Removing old timestamp or increment versions of log backup files did not work when the file is an absolute path: only the entry name was provided to the file remove function.

The dirname was also bogus, since the file separater was put back too soon.

Fix these issues to make log file rotation work when the file is configured to be an absolute path.

(cherry picked from commit 70629d73)

Closes #3991 (closed)

Edited by Matthijs Mekking

Merge request reports