Add socket creation again

Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
Tyrolyean 2020-04-25 19:24:29 +02:00
parent dc950bf2bb
commit e5820c740d
No known key found for this signature in database
GPG key ID: 81EC9BAC5E9667C6

View file

@ -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();