Skip to content
Snippets Groups Projects
Commit 077e30ab authored by sbbs's avatar sbbs
Browse files

Fix bug reported by Jon Justvig with regards to the .pnt BSO outbound

directory (missing a path separator). This is a regression added in
rev 1.264 (Sept 8 2015).
Also, if rename() of packet fails, don't continue tossing into that packet.
Increment version to 2.33 (the expected last reivion of the v2 series).
parent f2b92272
No related branches found
No related tags found
No related merge requests found
...@@ -352,6 +352,7 @@ int get_flo_outbound(faddr_t dest, char* outbound, size_t maxlen) ...@@ -352,6 +352,7 @@ int get_flo_outbound(faddr_t dest, char* outbound, size_t maxlen)
char point[128]; char point[128];
SAFEPRINTF2(point,"%04x%04x.pnt" SAFEPRINTF2(point,"%04x%04x.pnt"
,dest.net,dest.node); ,dest.net,dest.node);
backslash(outbound);
strncat(outbound,point,maxlen); strncat(outbound,point,maxlen);
} }
backslash(outbound); backslash(outbound);
...@@ -1832,8 +1833,10 @@ void pack_bundle(char *infile,faddr_t dest) ...@@ -1832,8 +1833,10 @@ void pack_bundle(char *infile,faddr_t dest)
node=matchnode(dest,0); node=matchnode(dest,0);
strcpy(str,infile); strcpy(str,infile);
str[strlen(str)-1]='t'; str[strlen(str)-1]='t';
if(rename(infile,str)) /* Change .PK_ file to .PKT file */ if(rename(infile,str)) { /* Change .PK_ file to .PKT file */
lprintf(LOG_ERR,"ERROR line %d renaming %s to %s",__LINE__,infile,str); lprintf(LOG_ERR,"ERROR line %d renaming %s to %s",__LINE__,infile,str);
return;
}
infile[strlen(infile)-1]='t'; infile[strlen(infile)-1]='t';
lprintf(LOG_INFO,"Sending packet (%s) to %s", infile, smb_faddrtoa(&dest,NULL)); lprintf(LOG_INFO,"Sending packet (%s) to %s", infile, smb_faddrtoa(&dest,NULL));
time(&now); time(&now);
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
/* Portions written by Allen Christiansen 1994-1996 */ /* Portions written by Allen Christiansen 1994-1996 */
#define SBBSECHO_VERSION_MAJOR 2 #define SBBSECHO_VERSION_MAJOR 2
#define SBBSECHO_VERSION_MINOR 32 #define SBBSECHO_VERSION_MINOR 33
#define SBBSECHO_PRODUCT_CODE 0x12FF /* from http://ftsc.org/docs/ftscprod.013 */ #define SBBSECHO_PRODUCT_CODE 0x12FF /* from http://ftsc.org/docs/ftscprod.013 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment