From 82bd7501d1f3ec8fcd99dcc462cda80553794572 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 8 Jul 2018 14:26:55 -0700 Subject: [PATCH] Don't create files with * in the name https://github.com/webmin/webmin/issues/935 --- logrotate/logrotate-lib.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/logrotate/logrotate-lib.pl b/logrotate/logrotate-lib.pl index 7eef94783..cfd64fee2 100755 --- a/logrotate/logrotate-lib.pl +++ b/logrotate/logrotate-lib.pl @@ -354,6 +354,7 @@ return ($?, $out); sub get_add_file { local ($filename) = @_; +$filename =~ s/\*/ALL/g; if ($config{'add_file'} && -d $config{'add_file'} && $filename) { # Adding to a new file in a directory return "$config{'add_file'}/$filename.conf";