If a file is not removed from disk during pack, a error log is created instead of a normal log

This commit is contained in:
Michiel Broek 2005-12-16 20:12:17 +00:00
parent eb8c383a90
commit 80ede4903f
3 changed files with 8 additions and 10 deletions

View File

@ -6,6 +6,8 @@ v0.83.4 04-Dec-2005
Fixed file importing of non-archived files. Fixed file importing of non-archived files.
The test for files.bbs for files to import was done in the The test for files.bbs for files to import was done in the
wrong directory. wrong directory.
If a file is not removed from disk during pack, a error log
is created instead of a normal log.
mbtask: mbtask:
Experimental code to recover from a half dead chatlink. Experimental code to recover from a half dead chatlink.

12
TODO
View File

@ -30,10 +30,6 @@ install:
L: On some (unsupported) distro's with xinetd the installation script L: On some (unsupported) distro's with xinetd the installation script
also adds entries to inetd.conf. Is this still a problem? also adds entries to inetd.conf. Is this still a problem?
libdiesel.a:
U: Processed stringlines containing unbalanced " characters are not
processed, instead the previous macro value will be returned.
mbsebbs: mbsebbs:
N: OLR, implement file requests. N: OLR, implement file requests.
@ -102,13 +98,13 @@ mbcico:
mbnntp: mbnntp:
U: fetched mail doesn't get the status Rcvd if it was for the user. U: fetched mail doesn't get the status Rcvd if it was for the user.
N: Do a better job for message linking by newsclients. N: Do a better job for message linking by newsclients. This is a
problem because we use the message numbers and messages are
sometimes renumbered. This will make some clients try to fetch
the wrong messages because they cache the message id's.
N: Lastread pointers are not updated. N: Lastread pointers are not updated.
mbfile:
N: Pack removes NODEDIFF.A87 but leaves the link nodediff.a87
mbaff: mbaff:
L: Rewrite filefind search algorithm. L: Rewrite filefind search algorithm.

View File

@ -105,11 +105,11 @@ void PackFileBase(void)
snprintf(fn, PATH_MAX, "%s/%s", area.Path, fdb.LName); snprintf(fn, PATH_MAX, "%s/%s", area.Path, fdb.LName);
rc = unlink(fn); rc = unlink(fn);
if (rc && (errno != ENOENT)) if (rc && (errno != ENOENT))
Syslog('+', "Unlink %s failed, result %d", fn, rc); WriteError("PackFileBase(): unlink %s failed, result %s", fn, strerror(rc));
snprintf(fn, PATH_MAX, "%s/%s", area.Path, fdb.Name); snprintf(fn, PATH_MAX, "%s/%s", area.Path, fdb.Name);
rc = unlink(fn); rc = unlink(fn);
if (rc && (errno != ENOENT)) if (rc && (errno != ENOENT))
Syslog('+', "Unlink %s failed, result %d", fn, rc); WriteError("PackFileBase(): unlink %s failed, result %s", fn, strerror(rc));
/* /*
* If a dotted version (thumbnail) exists, remove it silently * If a dotted version (thumbnail) exists, remove it silently
*/ */