PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- *) core: default_handler: cleanup outputed brigade before leaving.
- trunk patch:
- - http://svn.apache.org/r1783041
- 2.4.x patch: svn merge -c 1783041 ^/httpd/httpd/trunk .
- +1: jailletc36, rpluem, jim
-
- *) htcacheclean: Empty directories in CacheRoot are still present even after using "-t". PR64313
- trunk patch:
- - http://svn.apache.org/r1876484
- - http://svn.apache.org/r1876493
- 2.4.x patch: svn merge -c 1876484,1876493 ^/httpd/httpd/trunk .
- +1: jfclere, rpluem, jim
-
*) mod_reqtimeout: cannot override default Virtualhost's mod_reqtimeout. PR64295
trunk patch:
- http://svn.apache.org/r1876540
}
if (info.filetype == APR_DIR) {
+ char *dirpath = apr_pstrdup(p, d->basename);
+
if (process_dir(d->basename, pool, nodes)) {
return 1;
}
+ /* When given the -t option htcacheclean does not
+ * delete directories that are already empty, so we'll do that here
+ * since process_dir checks all the directories.
+ * If it fails, it likely means there was something else there.
+ */
+ if (deldirs && !dryrun) {
+ apr_dir_remove(dirpath, p);
+ }
continue;
}