[systemd-commits] src/nspawn

Colin Walters walters at kemper.freedesktop.org
Thu May 9 15:37:32 PDT 2013


 src/nspawn/nspawn.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e13e1fad8b231e187bd5de3ce668411bdcd3ac1a
Author: Colin Walters <walters at verbum.org>
Date:   Thu May 9 18:32:32 2013 -0400

    Fix previous commit for !HAVE_AUDIT

diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index b91b0b8..33153c9 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -1220,6 +1220,7 @@ finish:
 }
 
 static bool audit_enabled(void) {
+#ifdef HAVE_AUDIT
         int fd;
 
         fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT);
@@ -1227,7 +1228,7 @@ static bool audit_enabled(void) {
                 close_nointr_nofail(fd);
                 return true;
         }
-
+#endif
         return false;
 }
 



More information about the systemd-commits mailing list