]> sjero.net Git - wget/blobdiff - src/recur.c
Eschew config-post.h.
[wget] / src / recur.c
index 17f2a2b164d8ae8d48827eca52f60bfdcf40ad59..8d7b0940488a8f535a3f7a7e96435c26ed9ad814 100644 (file)
@@ -27,7 +27,7 @@ modify this file, you may extend this exception to your version of the
 file, but you are not obligated to do so.  If you do not wish to do
 so, delete this exception statement from your version.  */
 
-#include <config.h>
+#include "wget.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -38,7 +38,6 @@ so, delete this exception statement from your version.  */
 #include <errno.h>
 #include <assert.h>
 
-#include "wget.h"
 #include "url.h"
 #include "recur.h"
 #include "utils.h"
@@ -576,7 +575,9 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
               if (opt.delete_after || opt.spider)
                 {
                   logprintf (LOG_VERBOSE, "Removing %s.\n", rfile);
-                  unlink (rfile);
+                  if (unlink (rfile))
+                      logprintf (LOG_NOTQUIET, "unlink: %s\n",
+                                 strerror (errno));
                 }
 
               xfree (rfile);