Skip to content

Fix linter issues: use fopen_s on windows and fopen on other OS

329efd4
Select commit
Loading
Failed to load commit list.
Open

Support reopening audit and debug logs #3521

Fix linter issues: use fopen_s on windows and fopen on other OS
329efd4
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Mar 23, 2026 in 3m 26s

Annotations

Check failure on line 26 in src/utils/shared_files.cc

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this macro by "const", "constexpr" or an "enum".

See more on https://sonarcloud.io/project/issues?id=owasp-modsecurity_ModSecurity&issues=AZ0b0HFcdghgBKdKjJ2J&open=AZ0b0HFcdghgBKdKjJ2J&pullRequest=3521

Check warning on line 113 in src/utils/shared_files.cc

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'fopen' is deprecated: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

See more on https://sonarcloud.io/project/issues?id=owasp-modsecurity_ModSecurity&issues=AZ0b58L2uulwwnBCpnNl&open=AZ0b58L2uulwwnBCpnNl&pullRequest=3521