mirror of
https://github.com/webmin/webmin.git
synced 2026-06-19 02:40:32 +01:00
Postfix mail queue function can call error https://github.com/webmin/webmin/issues/218
This commit is contained in:
@@ -15,7 +15,14 @@ elsif ($m eq "qmailadmin") {
|
||||
}
|
||||
elsif ($m eq "postfix") {
|
||||
&foreign_require("postfix", "postfix-lib.pl");
|
||||
@qfiles = &postfix::list_queue();
|
||||
eval {
|
||||
local $main::error_must_die = 1;
|
||||
@qfiles = &postfix::list_queue();
|
||||
};
|
||||
if ($@) {
|
||||
return { 'up' => -1,
|
||||
'desc' => $@ };
|
||||
}
|
||||
}
|
||||
if (@qfiles > $_[0]->{'size'}) {
|
||||
return { 'up' => 0,
|
||||
|
||||
Reference in New Issue
Block a user