Don't declare a filesystem to be too small if we don't know how small it is

https://github.com/webmin/webmin/issues/2653
This commit is contained in:
Jamie Cameron
2026-04-06 08:01:19 -07:00
parent e44a25191f
commit 7ed4763f00
+1 -1
View File
@@ -91,7 +91,7 @@ if (!$gconfig{'tempdir'} && &foreign_available("webmin")) {
foreach my $disk (sort { length($b->{'dir'}) <=>
length($a->{'dir'}) } @$disks) {
if (&is_under_directory($disk->{'dir'}, $tmp)) {
if ($disk->{'total'} <= $small) {
if ($disk->{'total'} && $disk->{'total'} <= $small) {
# Too small
push(@rv, { 'type' => 'warning',
'level' => 'info',