Skip to content

Commit ff5efa3

Browse files
StephaneGerardVUBjrha
authored andcommitted
ncm-altlogrotate: check the value of $overallglobal
If there is an entry named 'global', the @Globals list will be empty when reaching the if of line 138, and if we don't check the value of $overallglobal (that is switched to 1 in case of an entry named 'global'), then the block of code modifying the global configuration file will be skipped.
1 parent 49c7b13 commit ff5efa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ncm-altlogrotate/src/main/perl/altlogrotate.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ sub Configure
135135
}
136136
}
137137

138-
# Next process global config file
139-
if (@globals) {
138+
# Next process the global config file
139+
if (@globals || $overallglobal) {
140140
if ($overallglobal) {
141141
unshift @globals, 'global';
142142

0 commit comments

Comments
 (0)