Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp Do globbing for FTP URLs of the form ftp://... too



details:   https://anonhg.NetBSD.org/src/rev/0246e5e9219e
branches:  trunk
changeset: 346790:0246e5e9219e
user:      maya <maya%NetBSD.org@localhost>
date:      Wed Aug 03 12:33:56 2016 +0000

description:
Do globbing for FTP URLs of the form ftp://... too

ok christos

diffstat:

 usr.bin/ftp/fetch.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 2b68b072d23d -r 0246e5e9219e usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c       Wed Aug 03 11:51:18 2016 +0000
+++ b/usr.bin/ftp/fetch.c       Wed Aug 03 12:33:56 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fetch.c,v 1.223 2016/04/04 23:59:41 christos Exp $     */
+/*     $NetBSD: fetch.c,v 1.224 2016/08/03 12:33:56 maya Exp $ */
 
 /*-
  * Copyright (c) 1997-2015 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.223 2016/04/04 23:59:41 christos Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.224 2016/08/03 12:33:56 maya Exp $");
 #endif /* not lint */
 
 /*
@@ -1899,7 +1899,8 @@
            STRorNULL(ui.path), STRorNULL(dir), STRorNULL(file));
 
        dirhasglob = filehasglob = 0;
-       if (doglob && ui.utype == CLASSIC_URL_T) {
+       if (doglob &&
+           (ui.utype == CLASSIC_URL_T || ui.utype == FTP_URL_T)) {
                if (! EMPTYSTRING(dir) && strpbrk(dir, "*?[]{}") != NULL)
                        dirhasglob = 1;
                if (! EMPTYSTRING(file) && strpbrk(file, "*?[]{}") != NULL)



Home | Main Index | Thread Index | Old Index