1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Print any errors from unlinking robots.txt.

This commit is contained in:
Micah Cowan 2007-10-14 19:10:38 -07:00
parent 38b0f4ba27
commit 20a19fa69f
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-10-14 Micah Cowan <micah@cowan.name>
* recur.c (download_child_p): Print error if unlink of
robots.txt fails.
2007-10-14 Joshua David Williams <yurimxpxman@gmail.com> 2007-10-14 Joshua David Williams <yurimxpxman@gmail.com>
* recur.c (download_child_p): Remove robots.txt if * recur.c (download_child_p): Remove robots.txt if

View File

@ -576,7 +576,9 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
if (opt.delete_after || opt.spider) if (opt.delete_after || opt.spider)
{ {
logprintf (LOG_VERBOSE, "Removing %s.\n", rfile); logprintf (LOG_VERBOSE, "Removing %s.\n", rfile);
unlink (rfile); if (unlink (rfile))
logprintf (LOG_NOTQUIET, "unlink: %s\n",
strerror (errno));
} }
xfree (rfile); xfree (rfile);