removed IPSECPOLICY compile option
This commit is contained in:
+3
-18
@@ -507,19 +507,6 @@ main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef IPSECPOLICY
|
||||
/* create info socket. */
|
||||
{
|
||||
err_t ugh = init_info_socket();
|
||||
|
||||
if (ugh != NULL)
|
||||
{
|
||||
fprintf(stderr, "pluto: %s", ugh);
|
||||
exit_pluto(1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* If not suppressed, do daemon fork */
|
||||
|
||||
if (fork_desired)
|
||||
@@ -571,12 +558,10 @@ main(int argc, char **argv)
|
||||
int i;
|
||||
|
||||
for (i = getdtablesize() - 1; i >= 0; i--) /* Bad hack */
|
||||
if ((!log_to_stderr || i != 2)
|
||||
#ifdef IPSECPOLICY
|
||||
&& i != info_fd
|
||||
#endif
|
||||
&& i != ctl_fd)
|
||||
{
|
||||
if ((!log_to_stderr || i != 2) && i != ctl_fd)
|
||||
close(i);
|
||||
}
|
||||
|
||||
/* make sure that stdin, stdout, stderr are reserved */
|
||||
if (open("/dev/null", O_RDONLY) != 0)
|
||||
|
||||
Reference in New Issue
Block a user