Skip to content

Commit

Permalink
Don't emit the login banner and/or message when -q is used
Browse files Browse the repository at this point in the history
Signed-off-by: John Morrissey <jwm@horde.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
jwm authored and David Woodhouse committed Mar 9, 2013
1 parent 76970c9 commit 38d6a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Expand Up @@ -1055,13 +1055,13 @@ static int process_auth_form(void *_vpninfo,
char response[1024];
char *p;

if (form->banner)
if (form->banner && verbose > PRG_ERR)
fprintf(stderr, "%s\n", form->banner);

if (form->error)
fprintf(stderr, "%s\n", form->error);

if (form->message)
if (form->message && verbose > PRG_ERR)
fprintf(stderr, "%s\n", form->message);

/* scan for select options first so they are displayed first */
Expand Down

0 comments on commit 38d6a4e

Please sign in to comment.