summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-11 17:52:01 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-11 17:52:01 +0200
commite543deaeb5c4af128a27ea0a7e858dacefe32305 (patch)
treed6a8a813b1674a815fd641aaeefe0170a40b34c3 /src
parenteaf91020117150567aee61d1324067c307e18950 (diff)
audit: initialize audit only if it is enabled
Diffstat (limited to 'src')
-rw-r--r--src/manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c
index 9c962ca815..a5b0ce002d 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -251,8 +251,10 @@ int manager_new(ManagerRunningAs running_as, Manager **_m) {
if ((r = bus_init(m)) < 0)
goto fail;
+#ifdef HAVE_AUDIT
if ((m->audit_fd = audit_open()) < 0)
log_error("Failed to connect to audit log: %m");
+#endif
*_m = m;
return 0;