mirror of
https://github.com/webmin/webmin.git
synced 2026-09-21 13:00:38 +01:00
Don't crash if file wasn't read
This commit is contained in:
@@ -103,7 +103,7 @@ foreach $w (@mysql_number_variables, @mysql_byte_variables) {
|
||||
|
||||
# Write out file
|
||||
foreach my $l (&get_all_mysqld_files()) {
|
||||
&flush_file_lines($l);
|
||||
&flush_file_lines($l, undef, 1);
|
||||
&unlock_file($l);
|
||||
}
|
||||
if ($in{'restart'} && &is_mysql_running() > 0) {
|
||||
|
||||
@@ -64,7 +64,7 @@ else {
|
||||
|
||||
# Write out file
|
||||
foreach my $l (&get_all_mysqld_files()) {
|
||||
&flush_file_lines($l);
|
||||
&flush_file_lines($l, undef, 1);
|
||||
&unlock_file($l);
|
||||
}
|
||||
if (($in{'restart'} || $in{'gen'}) && &is_mysql_running() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user