# HG changeset patch # User mirkol # Date 1006430740 0 # Node ID beb6525f8b44724e4fa0ff56f112cf7aafaee736 # Parent f0acb9366e4f14a7526e0b92bfb35803a3303edc [svn] expireContents() expires overview temporary files diff -r f0acb9366e4f -r beb6525f8b44 src/noffle.c --- a/src/noffle.c Thu Nov 22 12:05:11 2001 +0000 +++ b/src/noffle.c Thu Nov 22 12:05:40 2001 +0000 @@ -10,7 +10,7 @@ received for some seconds (to allow multiple clients connect at the same time). - $Id: noffle.c 327 2001-11-14 20:22:22Z mirkol $ + $Id: noffle.c 333 2001-11-22 12:05:40Z mirkol $ */ #if HAVE_CONFIG_H @@ -241,6 +241,7 @@ int i; int cntDel, cntLeft; Str grp; + Str tmpfname; Bool autoUnsubscribe; int autoUnsubscribeDays; time_t maxAge = 0; @@ -255,7 +256,18 @@ Fetchlist_read(); do { - if ( ! Grp_exists( grp ) ) + /* delete tmpfnames. see content.c:Cont_write() */ + if ( Wld_match(grp, ".#[0123456789][0123456789]*.*" ) ) + { + if ( ( snprintf( tmpfname, MAXCHAR, "%s/overview/%s", \ + Cfg_spoolDir(), grp ) < 0 ) \ + || ( unlink( tmpfname ) < 0 ) ) + Log_err( "Unlink of overview temp file %s failed: %s", \ + grp, strerror( errno ) ); + else + Log_err( "Overview temp file %s deleted.", grp ); + } + else if ( ! Grp_exists( grp ) ) Log_err( "Overview file for unknown group %s exists", grp ); else {