]> sjero.net Git - wget/commitdiff
[svn] Open the output file in binary mode.
authorhniksic <devnull@localhost>
Tue, 12 Apr 2005 20:32:31 +0000 (13:32 -0700)
committerhniksic <devnull@localhost>
Tue, 12 Apr 2005 20:32:31 +0000 (13:32 -0700)
By Gisle Vanem.

src/ChangeLog
src/ftp.c
src/http.c

index 2d6368e42f77913fd3b047b11c272ad6fafb8eff..6214699e07642f86b4ca6b80a5d059f1b20bf7fe 100644 (file)
@@ -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>
 
        * hash.c: Conditionalize including config.h on HAVE_CONFIG_H
index 2ced21b8bed46f32cb3633b544f01eddaa603e32..82bc84ae25fc73271b2306a8a1804b51e9cdd99a 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -982,7 +982,7 @@ Error in server response, closing control connection.\n"));
        fp = fopen (con->target, "wb");
       else
        {
-         fp = fopen_excl (con->target, 0);
+         fp = fopen_excl (con->target, 1);
          if (!fp && errno == EEXIST)
            {
              /* We cannot just invent a new name and use it (which is
index 5f2215957be8540fa90779f9cf758099221b6b58..e3440d8a5e436cf75f9f809e8f43dd70e70c885e 100644 (file)
@@ -1803,7 +1803,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
        fp = fopen (*hs->local_file, "wb");
       else
        {
-         fp = fopen_excl (*hs->local_file, 0);
+         fp = fopen_excl (*hs->local_file, 1);
          if (!fp && errno == EEXIST)
            {
              /* We cannot just invent a new name and use it (which is