Added real delete for orphaned ticfiles

This commit is contained in:
Michiel Broek 2005-11-22 20:03:38 +00:00
parent 6d6948ae4e
commit 358e135777

View File

@ -202,6 +202,7 @@ int Tic()
if (tmp->Purged) { if (tmp->Purged) {
fname = calloc(PATH_MAX, sizeof(char)); fname = calloc(PATH_MAX, sizeof(char));
snprintf(fname, PATH_MAX, "%s/%s", inbound, tmp->TicName); snprintf(fname, PATH_MAX, "%s/%s", inbound, tmp->TicName);
unlink(fname);
Syslog('+', "Removing obsolete %s", tmp->TicName); Syslog('+', "Removing obsolete %s", tmp->TicName);
free(fname); free(fname);
} }