diff options
-rw-r--r-- | networking/wget.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c index da629ccb9..3a02de6ca 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -876,6 +876,10 @@ static void NOINLINE retrieve_file_data(FILE *dfp) | |||
876 | polldata.fd = fileno(dfp); | 876 | polldata.fd = fileno(dfp); |
877 | polldata.events = POLLIN | POLLPRI; | 877 | polldata.events = POLLIN | POLLPRI; |
878 | #endif | 878 | #endif |
879 | if (G.output_fd == 1) | ||
880 | fprintf(stderr, "writing to stdout\n"); | ||
881 | else | ||
882 | fprintf(stderr, "saving to '%s'\n", G.fname_out); | ||
879 | progress_meter(PROGRESS_START); | 883 | progress_meter(PROGRESS_START); |
880 | 884 | ||
881 | if (G.chunked) | 885 | if (G.chunked) |
@@ -1021,6 +1025,10 @@ static void NOINLINE retrieve_file_data(FILE *dfp) | |||
1021 | G.chunked = 0; /* makes it show 100% even for chunked download */ | 1025 | G.chunked = 0; /* makes it show 100% even for chunked download */ |
1022 | G.got_clen = 1; /* makes it show 100% even for download of (formerly) unknown size */ | 1026 | G.got_clen = 1; /* makes it show 100% even for download of (formerly) unknown size */ |
1023 | progress_meter(PROGRESS_END); | 1027 | progress_meter(PROGRESS_END); |
1028 | if (G.output_fd == 1) | ||
1029 | fprintf(stderr, "written to stdout\n"); | ||
1030 | else | ||
1031 | fprintf(stderr, "'%s' saved\n", G.fname_out); | ||
1024 | } | 1032 | } |
1025 | 1033 | ||
1026 | static void download_one_url(const char *url) | 1034 | static void download_one_url(const char *url) |
@@ -1380,6 +1388,8 @@ However, in real world it was observed that some web servers | |||
1380 | xclose(G.output_fd); | 1388 | xclose(G.output_fd); |
1381 | G.output_fd = -1; | 1389 | G.output_fd = -1; |
1382 | } | 1390 | } |
1391 | } else { | ||
1392 | fprintf(stderr, "remote file exists\n"); | ||
1383 | } | 1393 | } |
1384 | 1394 | ||
1385 | if (dfp != sfp) { | 1395 | if (dfp != sfp) { |