Commits
Juris Lambda authored 866d8d79d13
...G...... [ZBX-21610] worked around sysctl() kern.proc.args API bug on FreeBSD <= 8.2 Prior to 8.3, FreeBSDs kern.proc.args sysctl() didn't follow the expected API contract where a user may find out the size of a request result by requesting performing a request without an output buffer (oldp == NULL). To work around this, incrementally allocate memory for the results up to _SC_ARG_MAX bytes.