Unpacked mail for directory nodes had the wrong filename

This commit is contained in:
Michiel Broek 2002-12-03 21:43:28 +00:00
parent cb14c6bd63
commit 2cf777e8a8
2 changed files with 7 additions and 4 deletions

View File

@ -70,6 +70,8 @@ v0.35.06
on the new nodes setting.
When writing ticfiles for downlinks, the format of the Seenby
lines now depends on the new nodes setting.
When adding unpacked mail for a directory node, the mail
packets had the wrong filename.
mbcico:
With filetransfer errors, the attempts counter was not

View File

@ -458,10 +458,11 @@ void flush_dir(char *ndir)
flavor = 'o';
if (nodes.Session_out == S_DIR) {
if (noden.point)
sprintf(arcfile, "%s/%08x.%cut", nodes.Dir_out_path, noden.point, flavor);
else
sprintf(arcfile, "%s/%04x%04x.%cut", nodes.Dir_out_path, noden.net, noden.node, flavor);
// if (noden.point)
// sprintf(arcfile, "%s/%08x.%cut", nodes.Dir_out_path, noden.point, flavor);
// else
// sprintf(arcfile, "%s/%04x%04x.%cut", nodes.Dir_out_path, noden.net, noden.node, flavor);
sprintf(arcfile, "%s/%08lx.pkt", nodes.Dir_out_path, sequencer());
} else {
sprintf(arcfile, "%s", pktname(&noden, flavor));
}