Add socket creation again
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
parent
dc950bf2bb
commit
e5820c740d
1 changed files with 10 additions and 0 deletions
10
src/main.c
10
src/main.c
|
@ -226,6 +226,16 @@ int main(){
|
||||||
fprintf(stderr, "smfi_register failed\n");
|
fprintf(stderr, "smfi_register failed\n");
|
||||||
return EXIT_FAILURE;
|
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");
|
printf("READY, handing over to libmilter\n");
|
||||||
return smfi_main();
|
return smfi_main();
|
||||||
|
|
Loading…
Reference in a new issue