summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-12-09 15:07:26 +0000
committerdes <des@FreeBSD.org>2001-12-09 15:07:26 +0000
commita1922f6bbf8677e6f9be46590c318349d9119eea (patch)
tree9468843f9e33917e1144c208f6ea7b24bbc53828 /usr.bin/fetch
parentb073ce5f0e582a4dcbf8e771c6a312f01d3c4cf6 (diff)
downloadFreeBSD-src-a1922f6bbf8677e6f9be46590c318349d9119eea.zip
FreeBSD-src-a1922f6bbf8677e6f9be46590c318349d9119eea.tar.gz
Set fetchDebug if v_level is 3 or more.
PR: bin/32615 MFC after: 1 week
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 5b83869..6d88622 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -291,6 +291,8 @@ fetch(char *URL, const char *path)
/* common flags */
if (v_level > 1)
strcat(flags, "v");
+ if (v_level > 2)
+ fetchDebug = 1;
switch (family) {
case PF_INET:
strcat(flags, "4");
OpenPOWER on IntegriCloud