Skip to content
Snippets Groups Projects
Commit 7003e67e authored by rswindell's avatar rswindell
Browse files

Add log warning if all bundle files for a specific node already exist.

parent 1d279c52
No related branches found
No related tags found
No related merge requests found
......@@ -1721,7 +1721,7 @@ void pack_bundle(char *infile,faddr_t dest)
,strerror(errno));
}
if(fexistcase(str)) {
if(flength(str)>=cfg.maxbdlsize)
if(i!='Z' && flength(str)>=cfg.maxbdlsize)
continue;
file=sopen(str,O_WRONLY,SH_DENYRW);
if(file==-1) /* Can't open?!? Probably being sent */
......@@ -1750,9 +1750,11 @@ void pack_bundle(char *infile,faddr_t dest)
return;
}
}
lprintf(LOG_WARNING,"All bundle files for %s already exist, adding to: %s"
,smb_faddrtoa(&dest,NULL), str);
pack(infile,str,dest); /* Won't get here unless all bundles are full */
}
/******************************************************************************
This function checks the inbound directory for the first bundle it finds, it
will then unpack and delete the bundle. If no bundles exist this function
......
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