If we get a file we cannot parse, then send back a SKIP and keep going
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 44s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m49s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-09-25 00:10:50 +10:00
parent 333e7e773d
commit bfab8c7d26

View File

@ -894,16 +894,13 @@ final class Binkp extends BaseProtocol
//if ($this->recv->fd) //if ($this->recv->fd)
// $this->recv->close(); // $this->recv->close();
// If we cannot understand the file, we'll send back a SKIP
if (! ($file=$this->file_parse($buf))) { if (! ($file=$this->file_parse($buf))) {
Log::error(sprintf('%s:! UNPARSABLE file info [%s]',self::LOGKEY,$buf)); Log::error(sprintf('%s:! UNPARSABLE file info [%s]',self::LOGKEY,$buf));
$this->msgs(self::BPM_ERR,sprintf('M_FILE: unparsable file info: "%s", what are you on?',$buf)); $this->msgs(self::BPM_ERR,sprintf('M_FILE: unparsable file info: "%s", what are you on?',$buf));
$this->msgs(self::BPM_SKIP,$buf);
if ($this->sessionGet(self::SE_SENDFILE)) return TRUE;
$this->send->close(FALSE,$this->node);
$this->rc = self::S_FAILURE;
return FALSE;
} }
// In NR mode, when we got -1 for the file offsite, the reply to our get will confirm our requested offset. // In NR mode, when we got -1 for the file offsite, the reply to our get will confirm our requested offset.