https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290478

--- Comment #9 from Marek Zarychta <[email protected]> ---
This patch fixes the issue for me:


diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c
index 190ee46baf21..83332433fd11 100644
--- a/lib/libpfctl/libpfctl.c
+++ b/lib/libpfctl/libpfctl.c
@@ -3158,6 +3158,7 @@ pfctl_get_rulesets(struct pfctl_handle *h, const char
*path, uint32_t *nr)
        }

        *nr = rs.nr;
+       e.error = (e.error == ENOENT) ? 0 : e.error;

        return (e.error);
 }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to