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:
parent
38b0f4ba27
commit
20a19fa69f
@ -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>
|
||||
|
||||
* recur.c (download_child_p): Remove robots.txt if
|
||||
|
@ -576,7 +576,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);
|
||||
|
Loading…
Reference in New Issue
Block a user