mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Make sure that when unlocking apache config files, it is done for the same ones that were originally locked https://www.virtualmin.com/node/40800
This commit is contained in:
@@ -1334,7 +1334,8 @@ sub lock_apache_files
|
||||
{
|
||||
local $conf = &get_config();
|
||||
local $f;
|
||||
foreach $f (&unique(map { $_->{'file'} } @$conf)) {
|
||||
@main::locked_apache_files = &unique(map { $_->{'file'} } @$conf);
|
||||
foreach $f (@main::locked_apache_files) {
|
||||
&lock_file($f);
|
||||
}
|
||||
}
|
||||
@@ -1343,9 +1344,10 @@ sub unlock_apache_files
|
||||
{
|
||||
local $conf = &get_config();
|
||||
local $f;
|
||||
foreach $f (&unique(map { $_->{'file'} } @$conf)) {
|
||||
foreach $f (@main::locked_apache_files) {
|
||||
&unlock_file($f);
|
||||
}
|
||||
@main::locked_apache_files = ( );
|
||||
}
|
||||
|
||||
# directive_lines(directive, ...)
|
||||
|
||||
Reference in New Issue
Block a user