$Log$
+ Revision 573.52 2000/12/19 20:41:55 ajc
+ * Fixed generation of unique file names for network uploads etc.
+
Revision 573.51 2000/12/14 18:36:34 ajc
* Fixed the "users not in chat" wholist display
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
int a,e;
time_t now;
FILE *ofp;
+ static int seq = 1;
extract(filename,cmdbuf,0);
extract(destsys,cmdbuf,1);
ERROR+NO_SUCH_SYSTEM,destsys);
return;
}
- snprintf(outfile,sizeof outfile,"%s/network/spoolin/nsf.%d",BBSDIR,
- getpid());
+ snprintf(outfile, sizeof outfile,
+ "%s/network/spoolin/nsf.%04x.%04x",
+ BBSDIR, getpid(), ++seq);
ofp=fopen(outfile,"a");
if (ofp==NULL) {
cprintf("%d internal error\n",ERROR);
*/
void cmd_nuop(char *cmdbuf)
{
+ static int seq = 1;
+
if (strlen(CC->net_node)==0) {
cprintf("%d Not authenticated as a network node.\n",
ERROR+NOT_LOGGED_IN);
return;
}
- snprintf(CC->upl_path,sizeof CC->upl_path,"%s/network/spoolin/%s.%d",
- BBSDIR,CC->net_node,getpid());
+ snprintf(CC->upl_path, sizeof CC->upl_path,
+ "%s/network/spoolin/%s.%04x.%04x",
+ BBSDIR, CC->net_node, getpid(), ++seq);
CC->upload_fp = fopen(CC->upl_path,"r");
if (CC->upload_fp != NULL) {