Skip to content

Commit

Permalink
Error writing to syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
kekek2 committed Jul 29, 2016
1 parent c89d47c commit f9f316e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions www/havp/files/patch-havp_logfile.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- havp/logfile.cpp.orig 2016-06-27 14:16:19.640229000 +0300
+++ havp/logfile.cpp 2016-06-27 14:25:01.272114000 +0300
@@ -52,7 +52,10 @@
SyslogLevel = GetSyslogLevel();
SyslogVirusLevel = GetSyslogVirusLevel();

- openlog(Params::GetConfigString("SYSLOGNAME").c_str(), LOG_CONS | LOG_PID, GetSyslogFacility());
+ // FreeBSD don't copy ident, only pointer to ident. So we need store ident itself
+ static string SyslogName;
+ SyslogName = Params::GetConfigString("SYSLOGNAME");
+ openlog(SyslogName.c_str(), LOG_CONS | LOG_PID, GetSyslogFacility());

return true;
}

0 comments on commit f9f316e

Please sign in to comment.