actually include config.h

This commit is contained in:
yrutschle 2025-02-19 08:59:17 +01:00
parent 3a1c31d8cb
commit fabf0a121c
3 changed files with 3 additions and 2 deletions

View File

@ -802,7 +802,7 @@ int check_access_rights(int in_socket, const char* service)
}
}
if (!hosts_ctl(service, host, addr_str, STRING_UNKNOWN)) {
if (!hosts_ctl((char*)service, host, addr_str, STRING_UNKNOWN)) {
print_message(msg_connections, "connection from %s(%s): access denied", host, addr_str);
close(in_socket);
return -1;

View File

@ -34,6 +34,7 @@
#include <sys/capability.h>
#endif
#include "config.h"
#include "version.h"
#define MAX(a, b) (((a) > (b)) ? (a) : (b))

View File

@ -4,7 +4,7 @@
/* Template for config.h, filled by `configure`. */
/* Libwrap, to support host_ctl, /etc/allow and /etc/deny */
# undef HAVE_LIBWRAP
#undef HAVE_LIBWRAP
/* Landlock sandboxing Linux LSM */
#undef HAVE_LANDLOCK