Added un_attach code to Add_BBS
This commit is contained in:
parent
3506f477d5
commit
80ab62471f
@ -33,6 +33,11 @@ v0.61.2 11-Jul-2004
|
||||
continuous calling.
|
||||
Changed to use direct instead of immediate mail.
|
||||
|
||||
mbfido:
|
||||
Added experimental code to un_attach files during tic import
|
||||
that are deleted from the system by replace, or keep # magic
|
||||
actions.
|
||||
|
||||
mbout:
|
||||
Changed to use direct instead of immediate mail.
|
||||
|
||||
|
@ -49,7 +49,7 @@ extern int tic_imp;
|
||||
* files database will be packed if necessary. All modifications are
|
||||
* done on temp files first.
|
||||
*/
|
||||
int Add_BBS()
|
||||
int Add_BBS(qualify **qal)
|
||||
{
|
||||
struct FILE_record frec;
|
||||
int rc, i, Found = FALSE, Keep = 0, DidDelete = FALSE;
|
||||
@ -57,6 +57,7 @@ int Add_BBS()
|
||||
fd_list *fdl = NULL;
|
||||
struct _fdbarea *fdb_area = NULL;
|
||||
qualify *tmpq;
|
||||
faddr *taka;
|
||||
|
||||
/*
|
||||
* First check for an existing record with the same filename,
|
||||
@ -281,13 +282,19 @@ int Add_BBS()
|
||||
if (unlink(temp2) != 0)
|
||||
WriteError("$Can't unlink file %s", temp2);
|
||||
sprintf(temp2, "%s/%s", area.Path, fdb.Name);
|
||||
|
||||
/*
|
||||
* With the path to the 8.3 name, we can check if this file
|
||||
* is attached for any possible downlink.
|
||||
* We must get the qualify list passed so we have a quick systems list.
|
||||
*/
|
||||
|
||||
|
||||
for (tmpq = *qal; tmpq; tmpq = tmpq->next) {
|
||||
if (tmpq->send) {
|
||||
taka = fido2faddr(tmpq->aka);
|
||||
un_attach(*(taka), temp2);
|
||||
tidy_faddr(taka);
|
||||
}
|
||||
}
|
||||
|
||||
if (unlink(temp2) != 0)
|
||||
WriteError("$Can't unlink file %s", temp2);
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef _ADDBBS_H
|
||||
#define _ADDBBS_H
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
int Add_BBS(void);
|
||||
|
||||
int Add_BBS(qualify **);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -37,7 +37,6 @@
|
||||
#include "toberep.h"
|
||||
#include "tic.h"
|
||||
#include "utic.h"
|
||||
#include "addbbs.h"
|
||||
#include "magic.h"
|
||||
#include "forward.h"
|
||||
#include "rollover.h"
|
||||
@ -46,6 +45,8 @@
|
||||
#include "createf.h"
|
||||
#include "virscan.h"
|
||||
#include "qualify.h"
|
||||
#include "addbbs.h"
|
||||
|
||||
|
||||
|
||||
#define UNPACK_FACTOR 300
|
||||
@ -649,7 +650,7 @@ int ProcessTic(fa_list *sbl)
|
||||
if (tic.FileArea) {
|
||||
|
||||
Syslog('+', "Import: %s (%s) Area: %s", TIC.NewFile, TIC.NewFullName, TIC.TicIn.Area);
|
||||
BBS_Imp = Add_BBS();
|
||||
BBS_Imp = Add_BBS(&qal);
|
||||
|
||||
if (!BBS_Imp) {
|
||||
Bad((char *)"File Import Error");
|
||||
|
Reference in New Issue
Block a user