From 752639885acaf53c76f93b14586e768b5cb1284a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 21 Nov 2009 18:13:06 +0000 Subject: [PATCH] * Fixed syslog permissions. * Some cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34177 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/syslog_daemon/syslog_output.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/servers/syslog_daemon/syslog_output.cpp b/src/servers/syslog_daemon/syslog_output.cpp index e87ded6500..72e628edf1 100644 --- a/src/servers/syslog_daemon/syslog_output.cpp +++ b/src/servers/syslog_daemon/syslog_output.cpp @@ -84,9 +84,9 @@ prepare_output() bool haveSyslog = sLog >= 0; // open file - sLog = open(syslog.Path(), O_APPEND | O_CREAT | O_WRONLY, 644); - if (!haveSyslog && sLog >=0) { - // first time open, check file size again + sLog = open(syslog.Path(), O_APPEND | O_CREAT | O_WRONLY, 0644); + if (!haveSyslog && sLog >= 0) { + // first time open, check file size again prepare_output(); } } @@ -222,7 +222,7 @@ init_syslog_output(SyslogDaemon *daemon) unload_driver_settings(handle); } - + daemon->AddHandler(syslog_output); }