summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/main.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2019-05-14 18:25:31 +0000
committerflorian <florian@openbsd.org>2019-05-14 18:25:31 +0000
commitc4ae2b0539ca67a57d0f958abd2540b0bb66d821 (patch)
tree6a8f2f09802b35333660de928a3da08e20996eaf /usr.bin/ftp/main.c
parentmake "bgpctl sh rib detail *out*" look less confusing (diff)
downloadwireguard-openbsd-c4ae2b0539ca67a57d0f958abd2540b0bb66d821.tar.xz
wireguard-openbsd-c4ae2b0539ca67a57d0f958abd2540b0bb66d821.zip
-v forces verbose mode even if stdin is not a terminal
Found the hard way by bluhm Debugged with deraadt & bluhm
Diffstat (limited to 'usr.bin/ftp/main.c')
-rw-r--r--usr.bin/ftp/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index f3c4f053062..a9f87f10151 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.125 2019/05/14 02:32:08 sunil Exp $ */
+/* $OpenBSD: main.c,v 1.126 2019/05/14 18:25:31 florian Exp $ */
/*
* Copyright (c) 2015 Sunil Nimmagadda <sunil@openbsd.org>
@@ -116,6 +116,9 @@ main(int argc, char **argv)
case 'V':
verbose = 0;
break;
+ case 'v':
+ verbose = 1;
+ break;
case 'w':
connect_timeout = strtonum(optarg, 0, 200, &e);
if (e)
@@ -145,7 +148,6 @@ main(int argc, char **argv)
case 'r':
case 's':
case 't':
- case 'v':
break;
default:
usage();