chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix previous commit for !HAVE_AUDIT
[elogind.git]
/
src
/
nspawn
/
nspawn.c
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;
}