mirror of
https://github.com/webmin/webmin.git
synced 2026-08-14 11:30:35 +01:00
Add extra check for wrong packet size https://forum.virtualmin.com/t/virtualmin-backup-truncates-part-of-mysql-dump-without-generating-error/113551/9
This commit is contained in:
@@ -1493,7 +1493,7 @@ if (&shell_is_bash()) {
|
||||
$cmd = "set -o pipefail ; $cmd";
|
||||
}
|
||||
local $out = &backquote_logged("($cmd) 2>&1");
|
||||
if ($? || !-s $file) {
|
||||
if ($? || !-s $file || $out =~ /Aborted\s+connection|max_allowed_packet/i) {
|
||||
return $out;
|
||||
}
|
||||
return undef;
|
||||
|
||||
Reference in New Issue
Block a user