summaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-07-19 17:29:38 +0000
committerMatt Kraai <kraai@debian.org>2001-07-19 17:29:38 +0000
commitc8eae6684b725f9cb62a05fedbd32d8c349634e1 (patch)
tree09526c68f18a10ea5d812821abeaea1134067f0c /networking/wget.c
parentc1cda4a6091902bdb81cb8938838f4b26ddc52cf (diff)
downloadbusybox-w32-c8eae6684b725f9cb62a05fedbd32d8c349634e1.tar.gz
busybox-w32-c8eae6684b725f9cb62a05fedbd32d8c349634e1.tar.bz2
busybox-w32-c8eae6684b725f9cb62a05fedbd32d8c349634e1.zip
The directory name should only be prepended if one was specified.
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 61945b7d1..5d94f6e1a 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -272,7 +272,8 @@ int wget_main(int argc, char **argv)
272 output = stdout; 272 output = stdout;
273 quiet_flag = TRUE; 273 quiet_flag = TRUE;
274 } else { 274 } else {
275 fname_out = concat_path_file(dir_prefix, fname_out); 275 if (dir_prefix != NULL)
276 fname_out = concat_path_file(dir_prefix, fname_out);
276 output = xfopen(fname_out, (do_continue ? "a" : "w")); 277 output = xfopen(fname_out, (do_continue ? "a" : "w"));
277 } 278 }
278 279
@@ -816,7 +817,7 @@ progressmeter(int flag)
816 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 817 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
817 * SUCH DAMAGE. 818 * SUCH DAMAGE.
818 * 819 *
819 * $Id: wget.c,v 1.42 2001/06/21 19:45:06 andersen Exp $ 820 * $Id: wget.c,v 1.43 2001/07/19 17:29:38 kraai Exp $
820 */ 821 */
821 822
822 823