Can't be too careful

This commit is contained in:
Jamie Cameron
2023-10-11 22:47:27 -07:00
parent 895217865b
commit 4c8d27cf89

View File

@@ -7768,6 +7768,7 @@ return 1 if (&is_readonly_mode());
my $rv = 1;
my $err;
foreach my $f (@_) {
die "Cannot delete root directory!" if ($f eq "/");
&unflush_file_lines($f);
my $realf = &translate_filename($f);
&webmin_debug_log('UNLINK', $realf) if ($gconfig{'debug_what_ops'});