Mercurial > noffle
changeset 227:c48d7e881a21 noffle
[svn] fixed expiration of temp overview files, once again.
author | mirkol |
---|---|
date | Tue, 18 Dec 2001 15:24:49 +0000 |
parents | 6622f409f5fb |
children | 1ad2602f57db |
files | src/content.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/content.c Sun Dec 09 21:41:49 2001 +0000 +++ b/src/content.c Tue Dec 18 15:24:49 2001 +0000 @@ -1,7 +1,7 @@ /* content.c - $Id: content.c 342 2001-12-09 12:31:57Z bears $ + $Id: content.c 357 2001-12-18 15:24:49Z mirkol $ */ #if HAVE_CONFIG_H @@ -349,7 +349,7 @@ return FALSE; if ( d->d_name[0] == '.' ) { - Str tmpfname; + Str tmpfname; /* * If it is '.' or '..', skip. @@ -363,10 +363,10 @@ break; case '#': - snprintf( tmpfname, MAXCHAR, "%s/overview/.#%d.%s", - Cfg_spoolDir(), (int) getpid(), d->d_name ); - Log_err( "Bad temporary file %s - please delete", - tmpfname ); + snprintf( tmpfname, MAXCHAR, "%s/overview/%s", + Cfg_spoolDir(), d->d_name ); + Log_err( "Bad temporary file %s - deleting.", + tmpfname ); if ( unlink( tmpfname ) < 0 ) Log_err( "Unlink of %s failed: %s", tmpfname, strerror(errno) );