httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1002686 - /httpd/httpd/trunk/support/htcacheclean.c
Date Wed, 29 Sep 2010 15:41:16 GMT
Author: minfrin
Date: Wed Sep 29 15:41:15 2010
New Revision: 1002686

URL: http://svn.apache.org/viewvc?rev=1002686&view=rev
Log:
htcacheclean: If the cache file format is unrecognised, remove the entry
from the cache.

Modified:
    httpd/httpd/trunk/support/htcacheclean.c

Modified: httpd/httpd/trunk/support/htcacheclean.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/htcacheclean.c?rev=1002686&r1=1002685&r2=1002686&view=diff
==============================================================================
--- httpd/httpd/trunk/support/htcacheclean.c (original)
+++ httpd/httpd/trunk/support/htcacheclean.c Wed Sep 29 15:41:15 2010
@@ -509,6 +509,12 @@ static int process_dir(char *path, apr_p
                                         p);
                         break;
                     }
+                    else {
+                        /* We didn't recognise the format, kill the files */
+                        apr_file_close(fd);
+                        delete_entry(path, d->basename, p);
+                        break;
+                    }
                 }
                 else {
                     apr_file_close(fd);



Mime
View raw message