* Fixed syslog permissions.
* Some cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34177 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
411d718eec
commit
752639885a
@ -84,9 +84,9 @@ prepare_output()
|
|||||||
bool haveSyslog = sLog >= 0;
|
bool haveSyslog = sLog >= 0;
|
||||||
|
|
||||||
// open file
|
// open file
|
||||||
sLog = open(syslog.Path(), O_APPEND | O_CREAT | O_WRONLY, 644);
|
sLog = open(syslog.Path(), O_APPEND | O_CREAT | O_WRONLY, 0644);
|
||||||
if (!haveSyslog && sLog >=0) {
|
if (!haveSyslog && sLog >= 0) {
|
||||||
// first time open, check file size again
|
// first time open, check file size again
|
||||||
prepare_output();
|
prepare_output();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -222,7 +222,7 @@ init_syslog_output(SyslogDaemon *daemon)
|
|||||||
|
|
||||||
unload_driver_settings(handle);
|
unload_driver_settings(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
daemon->AddHandler(syslog_output);
|
daemon->AddHandler(syslog_output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user