Fix to avoid showing a message if the user explicitly prefers tempdir
Some checks are pending
webmin.dev: webmin/webmin / build (push) Waiting to run

This commit is contained in:
Ilia Ross
2026-03-01 15:44:09 +02:00
parent 2e4ec03670
commit 5d860a6728

View File

@@ -84,8 +84,8 @@ my @rv = ({ 'type' => 'html',
});
# Check if the filesystem the Webmin temp dir is on is too small
if (&foreign_available("webmin")) {
my $tmp = $gconfig{'tempdir'} || &default_webmin_temp_dir();
if (!$gconfig{'tempdir'} && &foreign_available("webmin")) {
my $tmp = &default_webmin_temp_dir();
my $small = 10*1024*1024; # 10 MB
my $url = &get_webprefix()."/webmin/edit_advanced.cgi";
foreach my $disk (sort { length($b->{'dir'}) <=>