From 8bc96e08cb0c613edc35bcc6c3e8028b4db9e0aa Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 20 Apr 2006 07:06:39 +0000 Subject: - fixed log-to-syslog behavior - added patch against strongswan-2.6.4 --- Source/charon/daemon.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Source/charon/daemon.c') diff --git a/Source/charon/daemon.c b/Source/charon/daemon.c index d7265531d..376a09979 100644 --- a/Source/charon/daemon.c +++ b/Source/charon/daemon.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "daemon.h" @@ -332,6 +333,16 @@ int main(int argc, char *argv[]) private_daemon_t *private_charon; FILE *pid_file; struct stat stb; + int i; + + /* trivial argument parsing */ + for (i = 1; i < argc; i++) + { + if (strcmp(argv[i], "--use-syslog") == 0) + { + logger_manager->set_output(logger_manager, ALL_LOGGERS, NULL); + } + } private_charon = daemon_create(); charon = (daemon_t*)private_charon; -- cgit v1.2.3