+2013-03-12 Darshit Shah <darnir@gmail.com>
+
+ * http.c (gethttp): Make wget return FILEBADFILE error and abort if
+ post-file does not exist.
+
+ * http.c (http_loop): Handle FILEBADFILE as a valid err.
+
+ * exits.c (get_status_for_err): Mark FILEBADFILE as an IO error.
+
2013-02-15 Darshit Shah <darnir@gmail.com>
- * cookies.c (cookie_handle_set_cookie): Set cookie-descard_requested
+ * cookies.c (cookie_handle_set_cookie): Set cookie->discard_requested
to true on domain mismatch.
2012-12-20 Tim Ruehsen <tim.ruehsen@gmx.de>
case RETROK:
return WGET_EXIT_SUCCESS;
case FOPENERR: case FOPEN_EXCL_ERR: case FWRITEERR: case WRITEFAILED:
- case UNLINKERR: case CLOSEFAILED:
+ case UNLINKERR: case CLOSEFAILED: case FILEBADFILE:
return WGET_EXIT_IO_FAIL;
case NOCONERROR: case HOSTERR: case CONSOCKERR: case CONERROR:
case CONSSLERR: case CONIMPOSSIBLE: case FTPRERR: case FTPINVPASV:
{
logprintf (LOG_NOTQUIET, _("POST data file %s missing: %s\n"),
quote (opt.post_file_name), strerror (errno));
- post_data_size = 0;
+ return FILEBADFILE;
}
}
request_set_header (req, "Content-Length",
quote (hstat.local_file), strerror (errno));
case HOSTERR: case CONIMPOSSIBLE: case PROXERR: case AUTHFAILED:
case SSLINITFAILED: case CONTNOTSUPPORTED: case VERIFCERTERR:
+ case FILEBADFILE:
/* Fatal errors just return from the function. */
ret = err;
goto exit;