Skip to content
Snippets Groups Projects
Commit 881d0bc1 authored by deuce's avatar deuce
Browse files

Modify local file size check for duplicate callback.

parent 6977af31
No related branches found
No related tags found
No related merge requests found
......@@ -1813,7 +1813,16 @@ int zmodem_recv_files(zmodem_t* zm, const char* download_dir, uint32_t* bytes_re
if(l>=(int32_t)bytes) {
lprintf(zm,LOG_WARNING,"Local file size >= remote file size (%ld)"
,bytes);
break;
if(zm->duplicate_filename==NULL)
break;
else {
if(l > (int32_t)bytes) {
if(zm->duplicate_filename(zm->cbdata, zm)) {
loop=TRUE;
break;
}
}
}
}
if((fp=fopen(fpath,"rb"))==NULL) {
lprintf(zm,LOG_ERR,"Error %d opening %s", errno, fpath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment