X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=dfe03ce0e4cb3ef686adbe2b48bacbf82bf7050e;hp=1b579bf194c9642e86b41c502ce1fcca8c53eb49;hb=5ef1d7b949abfce3a363a1170746e6cd1f950486;hpb=bd3028f1cda5715066a984983d3a44195b7a32e3 diff --git a/src/http.c b/src/http.c index 1b579bf1..dfe03ce0 100644 --- a/src/http.c +++ b/src/http.c @@ -2300,7 +2300,7 @@ File %s already there; not retrieving.\n\n"), quote (hs->local_file)); # define FOPEN_OPT_ARGS "fop=sqo", "acc", acc_cb, &open_id # define FOPEN_BIN_FLAG 3 #else /* def __VMS */ -# define FOPEN_BIN_FLAG 1 +# define FOPEN_BIN_FLAG true #endif /* def __VMS [else] */ /* Open the local file. */ @@ -2333,7 +2333,7 @@ File %s already there; not retrieving.\n\n"), quote (hs->local_file)); } else { - fp = fopen_excl (hs->local_file, true); + fp = fopen_excl (hs->local_file, FOPEN_BIN_FLAG); if (!fp && errno == EEXIST) { /* We cannot just invent a new name and use it (which is