summaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-31 23:14:23 +1100
committerDamien Miller <djm@mindrot.org>2006-03-31 23:14:23 +1100
commit7a8f5b330dc7a98e7144ec119a7b5b0737a26708 (patch)
treeff3743ad84d2f393288fb2ee08298e17a06f47a2 /auth.c
parente23209f4349343d75c66fd8c71a57942d8827f54 (diff)
- dtucker@cvs.openbsd.org 2006/03/30 11:40:21
[auth.c monitor.c] Prevent duplicate log messages when privsep=yes; ok djm@
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/auth.c b/auth.c
index bf2948a8..e43c8165 100644
--- a/auth.c
+++ b/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.66 2006/03/25 13:17:01 djm Exp $ */
+/* $OpenBSD: auth.c,v 1.67 2006/03/30 11:40:21 dtucker Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -61,6 +61,7 @@
/* import */
extern ServerOptions options;
+extern int use_privsep;
extern Buffer loginmsg;
/* Debugging messages */
@@ -237,6 +238,9 @@ auth_log(Authctxt *authctxt, int authenticated, char *method, char *info)
void (*authlog) (const char *fmt,...) = verbose;
char *authmsg;
+ if (use_privsep && !mm_is_monitor() && !authctxt->postponed)
+ return;
+
/* Raise logging level */
if (authenticated == 1 ||
!authctxt->valid ||