]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Open the output file in binary mode.
[wget] / src / ftp.c
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