Actions
Bug #866
closed1.4.3: src/util-syslog.c: Solaris doesn't have LOG_AUTHPRIV or LOG_FTP
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
Solaris doesn't define LOG_AUTHPRIV or LOG_FTP so we need to substitute them with useful alternatives.
--- suricata-1.4.3/src/util-syslog.c.orig Tue Jul 9 12:59:58 2013
+++ suricata-1.4.3/src/util-syslog.c Tue Jul 9 13:01:57 2013
@@ -25,6 +25,12 @@
*/
#include "suricata-common.h"
+#if !defined(LOG_AUTHPRIV)
+# define LOG_AUTHPRIV LOG_AUTH
+#endif
+#if !defined(LOG_FTP)
+# define LOG_FTP LOG_DAEMON
+#endif
/* holds the string-enum mapping for the syslog facility in SCLogOPIfaceCtx */
SCEnumCharMap sc_syslog_facility_map[] = {
Actions