Fix for when NR mode is active

This commit is contained in:
Deon George 2023-07-19 16:34:09 +10:00
parent f9a74578ff
commit e1169335be
2 changed files with 4 additions and 2 deletions

View File

@ -56,6 +56,8 @@ class Receive extends Base
case 'fd': case 'fd':
return is_resource($this->f); return is_resource($this->f);
case 'recvmtime':
case 'recvsize':
case 'mtime': case 'mtime':
case 'nameas': case 'nameas':
case 'size': case 'size':

View File

@ -874,8 +874,8 @@ final class Binkp extends BaseProtocol
if ($this->recv->ready if ($this->recv->ready
&& $this->recv->nameas && $this->recv->nameas
&& (! strncasecmp(Arr::get($file,'file.name'),$this->recv->nameas,self::MAX_PATH)) && (! strncasecmp(Arr::get($file,'file.name'),$this->recv->nameas,self::MAX_PATH))
&& $this->recv->mtime === Arr::get($file,'file.mtime') && $this->recv->recvmtime === Arr::get($file,'file.mtime')
&& $this->recv->size === Arr::get($file,'file.size') && $this->recv->recvsize === Arr::get($file,'file.size')
&& $this->recv->pos === $file['offs']) && $this->recv->pos === $file['offs'])
{ {
$this->recv->open($file['offs']<0,$file['flags']); $this->recv->open($file['offs']<0,$file['flags']);