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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user