chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c15602a
)
Fix previous commit for !HAVE_AUDIT
author
Colin Walters
<walters@verbum.org>
Thu, 9 May 2013 22:32:32 +0000
(18:32 -0400)
committer
Colin Walters
<walters@verbum.org>
Thu, 9 May 2013 22:37:26 +0000
(18:37 -0400)
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index b91b0b8a91f4bccc9011028e20a101bb9506fbf7..33153c950777b7591c64c35536cafbf4e4072336 100644
(file)
--- 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;
}