X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/00a017bdce279457abb469e72a934085beea95d7..caba7de7d39b58f9f4fa9f33ca04531e0358e266:/auth2-none.c diff --git a/auth2-none.c b/auth2-none.c index 8cbef527..28e593e6 100644 --- a/auth2-none.c +++ b/auth2-none.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-none.c,v 1.12 2006/08/03 03:34:41 deraadt Exp $ */ +/* $OpenBSD: auth2-none.c,v 1.14 2007/08/23 03:22:16 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -27,9 +27,12 @@ #include #include +#include #include +#include #include +#include #include "xmalloc.h" #include "key.h" @@ -104,7 +107,9 @@ userauth_banner(void) { char *banner = NULL; - if (options.banner == NULL || (datafellows & SSH_BUG_BANNER)) + if (options.banner == NULL || + strcasecmp(options.banner, "none") == 0 || + (datafellows & SSH_BUG_BANNER) != 0) return; if ((banner = PRIVSEP(auth2_read_banner())) == NULL)