* this gets interpreted as the auto-gen output filename
* case below - tausq@debian.org
*/
- fname_out = (strcmp(optarg, "-") == 0 ? (char *)1 : optarg);
+ fname_out = optarg;
break;
default:
show_usage();
/*
* Open the output file stream.
*/
- if (fname_out != (char *)1) {
- output = xfopen( fname_out, (do_continue ? "a" : "w") );
- } else {
+ if (strcmp(fname_out, "-") == 0) {
output = stdout;
+ } else {
+ output = xfopen(fname_out, (do_continue ? "a" : "w"));
}
/*
error_msg_and_die("ftp error: %s", buf+4);
ftpcmd("QUIT", NULL, sfp, buf);
}
- printf("\n");
+#ifdef BB_FEATURE_WGET_STATUSBAR
+ if (quiet_flag==FALSE)
+ putc('\n', stderr);
+#endif
exit(EXIT_SUCCESS);
}
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.32 2001/04/10 18:17:05 andersen Exp $
+ * $Id: wget.c,v 1.35 2001/04/11 20:11:51 kraai Exp $
*/