diff options
author | Francis Giraldeau <francis.giraldeau@revolutionlinux.com> | 2008-12-17 09:49:39 +0200 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-01-09 09:59:54 -0800 |
commit | 3ec3b502e3c6f0b74f8d96f7dda4f872156589a1 (patch) | |
tree | fca9c59157202fb54a8648e06e78291040f774c6 | |
parent | 053f32d92864870cd5714befb419810976729df3 (diff) |
Don't log audit messages when -audit 0 specified
make the auditTrailLevel check more general and don't log when not
using DTRACE and -audit 0 is set.
(cherry picked from commit d61e902aab92c262e6c8ee9cd70aec4493cf6cae)
-rw-r--r-- | os/connection.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/os/connection.c b/os/connection.c index ddb2d6c2a..8f1f73e43 100644 --- a/os/connection.c +++ b/os/connection.c @@ -602,8 +602,8 @@ AuthAudit (ClientPtr client, Bool letin, #ifdef XSERVER_DTRACE XSERVER_CLIENT_AUTH(client->index, addr, client_pid, client_zid); - if (auditTrailLevel > 1) { #endif + if (auditTrailLevel > 1) { if (proto_n) AuditF("client %d %s from %s%s\n Auth name: %.*s ID: %d\n", client->index, letin ? "connected" : "rejected", addr, @@ -613,9 +613,7 @@ AuthAudit (ClientPtr client, Bool letin, client->index, letin ? "connected" : "rejected", addr, client_uid_string); -#ifdef XSERVER_DTRACE } -#endif } XID |