summaryrefslogtreecommitdiff
path: root/security/openvpn/files/patch-error.c
blob: 8193100c0e6baf9e82571046b3df0d4eca8a0d5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- error.c.orig	Mon Jun 24 02:27:37 2002
+++ error.c	Mon Jun 24 02:28:05 2002
@@ -215,7 +215,7 @@
 #if defined(HAVE_OPENLOG) && defined(HAVE_SYSLOG)
       if (daemon (cd != NULL, 0) < 0)
 	msg (M_ERR, "daemon() failed");
-      openlog ("openvpn", LOG_PID, 0);
+      openlog ("openvpn", LOG_PID, LOG_DAEMON);
 #else
       msg (M_WARN, "Warning: this operating system lacks daemon logging features, therefore when I become a daemon, I won't be able to log status or error messages");
       if (daemon (cd != NULL, 0) < 0)