Fix config-base health monitor on Windows - #1030
Conversation
… spawned (CLI or via config).
| var err error | ||
|
|
||
| // Ensure the output directory exists | ||
| if err := os.MkdirAll(hmcommon.OutputPath, 0755); err != nil { |
There was a problem hiding this comment.
Mend Code Security Check
New finding (1 of 2)
The Mend Code Security Check of your branch failed because of a Insecure Directory Permissions finding in this line.
| Severity | Vulnerability Type | CWE | File | Data Flows | Detected |
|---|---|---|---|---|---|
| Insecure Directory Permissions | 1 | 2026-08-26 08:43pm | |||
| |||||
| // This is important when running as a service where the child process may | ||
| // have more restrictive permissions than the parent. | ||
| if options.MonitorOpt.OutputPath != "" { | ||
| err := os.MkdirAll(options.MonitorOpt.OutputPath, 0755) |
There was a problem hiding this comment.
Mend Code Security Check
New finding (2 of 2)
The Mend Code Security Check of your branch failed because of a Insecure Directory Permissions finding in this line.
| Severity | Vulnerability Type | CWE | File | Data Flows | Detected |
|---|---|---|---|---|---|
| Insecure Directory Permissions | 1 | 2026-08-26 11:25pm | |||
| |||||
Work harder to resolve cfusemon on the path, and disable monitoring correclty when it is not found.