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
|
@ -227,6 +227,16 @@ int main(){
|
|||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue