[systemd-commits] src/manager.c
Lennart Poettering
lennart at kemper.freedesktop.org
Wed Aug 11 08:52:09 PDT 2010
src/manager.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit e543deaeb5c4af128a27ea0a7e858dacefe32305
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 11 17:52:01 2010 +0200
audit: initialize audit only if it is enabled
diff --git a/src/manager.c b/src/manager.c
index 9c962ca..a5b0ce0 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;
More information about the systemd-commits
mailing list