Added un_attach function development
This commit is contained in:
parent
1678c98f50
commit
661fe188ad
@ -70,7 +70,7 @@ void flush_dir(char *ndir)
|
|||||||
FILE *fp, *inf, *ouf;
|
FILE *fp, *inf, *ouf;
|
||||||
faddr noden, *bestaka;
|
faddr noden, *bestaka;
|
||||||
fidoaddr nodenr;
|
fidoaddr nodenr;
|
||||||
int flavor, mode, Attach, fage, first, bread, rc, fdb;
|
int flavor, mode, Attach, fage, first, bread, rc, fdn;
|
||||||
long fsize;
|
long fsize;
|
||||||
char *p, *temp, *fname, *arcfile, *pktfile, *ext, maxnr, nr, oldnr, *buf;
|
char *p, *temp, *fname, *arcfile, *pktfile, *ext, maxnr, nr, oldnr, *buf;
|
||||||
time_t Now;
|
time_t Now;
|
||||||
@ -407,7 +407,7 @@ void flush_dir(char *ndir)
|
|||||||
* Attach file to .flo, not for FTP or Directory sessions.
|
* Attach file to .flo, not for FTP or Directory sessions.
|
||||||
*/
|
*/
|
||||||
if (Attach && nodes.Session_out == S_DIRECT)
|
if (Attach && nodes.Session_out == S_DIRECT)
|
||||||
attach(noden, arcfile, TFS, flavor);
|
attach(noden, arcfile, TFS, flavor, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -551,17 +551,17 @@ void flush_dir(char *ndir)
|
|||||||
p = strchr(p, ' ');
|
p = strchr(p, ' ');
|
||||||
p++;
|
p++;
|
||||||
if (strncmp(p, "NOR ", 4))
|
if (strncmp(p, "NOR ", 4))
|
||||||
fdb = FALSE;
|
fdn = FALSE;
|
||||||
else if (strncmp(p, "FDN ", 4))
|
else if (strncmp(p, "FDN ", 4))
|
||||||
fdb = TRUE;
|
fdn = TRUE;
|
||||||
else
|
else
|
||||||
fdb = FALSE;
|
fdn = FALSE;
|
||||||
p = strchr(p, ' ');
|
p = strchr(p, ' ');
|
||||||
p++;
|
p++;
|
||||||
|
|
||||||
Syslog('p', "File attach (fdb=%s) %s", fdb?"True":"False", p);
|
Syslog('p', "File attach (fdn=%s) %s", fdn?"True":"False", p);
|
||||||
if (nodes.Session_out == S_DIRECT) {
|
if (nodes.Session_out == S_DIRECT) {
|
||||||
attach(noden, p, mode, flavor);
|
attach(noden, p, mode, flavor, fdn);
|
||||||
} else if (nodes.Session_out == S_DIR) {
|
} else if (nodes.Session_out == S_DIR) {
|
||||||
sprintf(arcfile, "%s/%s", nodes.Dir_out_path, Basename(p));
|
sprintf(arcfile, "%s/%s", nodes.Dir_out_path, Basename(p));
|
||||||
if (mode == LEAVE) {
|
if (mode == LEAVE) {
|
||||||
|
Reference in New Issue
Block a user