Fix ftp url reget when globs are being used.

Provided by Mathieu Arnold <mat@FreeBSD.org>.
This commit is contained in:
lukem 2005-01-12 22:37:41 +00:00
parent 53aa30e2eb
commit f851795088
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fetch.c,v 1.154 2004/12/10 06:44:15 lukem Exp $ */ /* $NetBSD: fetch.c,v 1.155 2005/01/12 22:37:41 lukem Exp $ */
/*- /*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc. * Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
__RCSID("$NetBSD: fetch.c,v 1.154 2004/12/10 06:44:15 lukem Exp $"); __RCSID("$NetBSD: fetch.c,v 1.155 2005/01/12 22:37:41 lukem Exp $");
#endif /* not lint */ #endif /* not lint */
/* /*
@ -1596,6 +1596,9 @@ fetch_ftp(const char *url)
ointeractive = interactive; ointeractive = interactive;
interactive = 0; interactive = 0;
if (restartautofetch)
xargv[0] = "mreget";
else
xargv[0] = "mget"; xargv[0] = "mget";
mget(xargc, xargv); mget(xargc, xargv);
interactive = ointeractive; interactive = ointeractive;

View File

@ -1,4 +1,4 @@
/* $NetBSD: version.h,v 1.43 2005/01/03 09:50:10 lukem Exp $ */ /* $NetBSD: version.h,v 1.44 2005/01/12 22:37:41 lukem Exp $ */
/*- /*-
* Copyright (c) 1999-2005 The NetBSD Foundation, Inc. * Copyright (c) 1999-2005 The NetBSD Foundation, Inc.
* All rights reserved. * All rights reserved.
@ -40,5 +40,5 @@
#endif #endif
#ifndef FTP_VERSION #ifndef FTP_VERSION
#define FTP_VERSION "20050103" #define FTP_VERSION "20050112"
#endif #endif