mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Opens auditlog files and directories with the correct mode
Respecting the directives: SecAuditLogStorageDir and SecAuditLogFileMode
This commit is contained in:
@@ -69,11 +69,11 @@ std::string ascTime(time_t *t) {
|
||||
}
|
||||
|
||||
|
||||
void createDir(std::string dir) {
|
||||
void createDir(std::string dir, int mode) {
|
||||
#if defined _MSC_VER
|
||||
_mkdir(dir.data());
|
||||
#elif defined __GNUC__
|
||||
mkdir(dir.data(), 0777);
|
||||
mkdir(dir.data(), mode);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user