X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fmain.c;h=9edec13b67919b4cc942dc3872dc0e39ae6038b7;hb=d733dbc7031aaa417e45c38a34a9b72813176bbd;hp=8cacb893f36d74ccba329921c6a94fa7db2abccb;hpb=293008f682e5fa9726136bc121bceadc136c77dc;p=wget diff --git a/src/main.c b/src/main.c index 8cacb893..9edec13b 100644 --- a/src/main.c +++ b/src/main.c @@ -1217,6 +1217,13 @@ WARNING: Can't reopen standard output in binary mode;\n\ if (fstat (fileno (output_stream), &st) == 0 && S_ISREG (st.st_mode)) output_stream_regular = true; } + if (!output_stream_regular && opt.convert_links) + { + printf (_("-k can be used together with -O only if outputting to \ +a regular file.\n")); + print_usage (); + exit(1); + } } #ifdef __VMS