Skip to content
Snippets Groups Projects
Commit 78a0c7ac authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: log must use the mask defined into setup

parent 494e9dbe
Branches
Tags
No related merge requests found
......@@ -114,6 +114,8 @@ class mod_syslog_file extends LogHandler implements LogHandlerInterface
*/
public function export($content, $suffixinfilename='')
{
global $conf;
$logfile = $this->getFilename($suffixinfilename);
if (defined("SYSLOG_FILE_NO_ERROR")) $filefd = @fopen($logfile, 'a+');
......@@ -145,6 +147,7 @@ class mod_syslog_file extends LogHandler implements LogHandlerInterface
fwrite($filefd, $message."\n");
fclose($filefd);
@chmod($logfile, octdec($conf->global->MAIN_UMASK));
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment