]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
ipset-pf-support, fix to log error on failure to open pf.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Jul 2024 15:06:11 +0000 (17:06 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Jul 2024 15:06:11 +0000 (17:06 +0200)
ipset/ipset.c

index 8645c78b5433a50cc4202e4e3c0337afb5c32f51..3cc906f323a387d5fb483c22c66422ee8dc580d8 100644 (file)
@@ -57,7 +57,7 @@ static void * open_filter() {
 
        dev = open("/dev/pf", O_RDWR);
        if (dev == -1) {
-               log_err("open(\"/dev/pf\") failed");
+               log_err("open(\"/dev/pf\") failed: %s", strerror(errno));
                return NULL;
        }
        else