mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Open the output file in binary mode.
By Gisle Vanem.
This commit is contained in:
parent
c65bc738a0
commit
4cf3365fcf
@ -1,3 +1,9 @@
|
|||||||
|
2005-04-12 Gisle Vanem <giva@bgnett.no>
|
||||||
|
|
||||||
|
* ftp.c (getftp): Ditto.
|
||||||
|
|
||||||
|
* http.c (gethttp): Open the output file in binary mode.
|
||||||
|
|
||||||
2005-04-11 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-04-11 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* hash.c: Conditionalize including config.h on HAVE_CONFIG_H
|
* hash.c: Conditionalize including config.h on HAVE_CONFIG_H
|
||||||
|
@ -982,7 +982,7 @@ Error in server response, closing control connection.\n"));
|
|||||||
fp = fopen (con->target, "wb");
|
fp = fopen (con->target, "wb");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fp = fopen_excl (con->target, 0);
|
fp = fopen_excl (con->target, 1);
|
||||||
if (!fp && errno == EEXIST)
|
if (!fp && errno == EEXIST)
|
||||||
{
|
{
|
||||||
/* We cannot just invent a new name and use it (which is
|
/* We cannot just invent a new name and use it (which is
|
||||||
|
@ -1803,7 +1803,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
|
|||||||
fp = fopen (*hs->local_file, "wb");
|
fp = fopen (*hs->local_file, "wb");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fp = fopen_excl (*hs->local_file, 0);
|
fp = fopen_excl (*hs->local_file, 1);
|
||||||
if (!fp && errno == EEXIST)
|
if (!fp && errno == EEXIST)
|
||||||
{
|
{
|
||||||
/* We cannot just invent a new name and use it (which is
|
/* We cannot just invent a new name and use it (which is
|
||||||
|
Loading…
Reference in New Issue
Block a user