[PATCH] don't emit the login banner and/or message when -q is used

John Morrissey jwm at horde.net
Sat Mar 9 17:04:51 EST 2013


>From 421e798c1d241c2a19f974d338c82568da6714b1 Mon Sep 17 00:00:00 2001
From: John Morrissey <jwm at horde.net>
Date: Sat, 9 Mar 2013 17:00:15 -0500
Subject: [PATCH] don't emit the login banner and/or message when -q is used


Signed-off-by: John Morrissey <jwm at horde.net>
---
 main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
index 405bc0d..cc2b304 100644
--- a/main.c
+++ b/main.c
@@ -1075,13 +1075,13 @@ static int process_auth_form(void *_vpninfo,
 	char response[1024];
 	char *p;
 
-	if (form->banner)
+	if ((verbose > PRG_ERR) && form->banner)
 		fprintf(stderr, "%s\n", form->banner);
 
 	if (form->error)
 		fprintf(stderr, "%s\n", form->error);
 
-	if (form->message)
+	if ((verbose > PRG_ERR) && form->message)
 		fprintf(stderr, "%s\n", form->message);
 
 	/* scan for select options first so they are displayed first */
-- 
1.7.2.5




More information about the openconnect-devel mailing list