mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00:00
Fix previous commit for !HAVE_AUDIT
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user