From e5820c740d79dfe283086e098f6e27007b0ac5c2 Mon Sep 17 00:00:00 2001 From: Tyrolyean Date: Sat, 25 Apr 2020 19:24:29 +0200 Subject: [PATCH] Add socket creation again Signed-off-by: Tyrolyean --- src/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.c b/src/main.c index ac2aea1..8ce7a82 100644 --- a/src/main.c +++ b/src/main.c @@ -226,6 +226,16 @@ int main(){ fprintf(stderr, "smfi_register failed\n"); return EXIT_FAILURE; } + + if(smfi_opensocket(true) == MI_FAILURE){ + fprintf(stderr, "smfi_opensocket failed at location [%s]\n", + socket_location); + return EXIT_FAILURE; + } + if(chmod(socket_location,0x1FF) < 0){ + perror("Failed to change socket permissions"); + + } printf("READY, handing over to libmilter\n"); return smfi_main();