Hi,
I'm a beginner, this is my first "patch", surely is buggy. I think
that it can't be so easy, but I haven't observed any problems so far.
I will reindent if the patch is ok.
Please review.
Regards,
Pere.
PS: Currently busybox's wget doesn't handle auto-renaming filenames
(adding a number, to filename.N) if file exits. That's another
-related- patch.
diff --git a/networking/wget.c b/networking/wget.c
index 44eb4cf..cc91622 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -657,8 +657,7 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
}
#endif
- /* TODO: compat issue: should handle "wget URL1 URL2..." */
-
+ while (optind < argc) {
target.user = NULL;
parse_url(argv[optind], &target);
@@ -940,6 +939,10 @@ However, in real world it was observed that some web servers
bb_error_msg_and_die("ftp error: %s", sanitize_string(G.wget_buf + 4));
/* ftpcmd("QUIT", NULL, sfp); - why bother? */
}
+
+ optind++;
+ output_fd = -1;
+ }
return EXIT_SUCCESS;
}
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox