opnsense-ports/databases/proxysql/files/patch-lib_ProxySQL__Admin.cpp
Franco Fichtner ef3b184718 */*: sync with upstream
Taken from: FreeBSD
2024-06-04 13:30:05 +02:00

11 lines
438 B
C++

--- lib/ProxySQL_Admin.cpp.orig 2024-04-05 16:24:43 UTC
+++ lib/ProxySQL_Admin.cpp
@@ -9507,7 +9507,7 @@ void ProxySQL_Admin::p_update_metrics() {
* @return On success, the number of currently opened file descriptors, '-1' otherwise.
*/
int32_t get_open_fds() {
- DIR* dir = opendir("/proc/self/fd");
+ DIR* dir = opendir("/dev/fd");
if (dir == NULL) {
proxy_error("'opendir()' failed with error: '%d'\n", errno);
return -1;