Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2025 13:38:54 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3030d29571e5 - main - pfctl: restore '.' at the end of these errors
Message-ID:  <202507121338.56CDcsNQ089033@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=3030d29571e54b609ce8652a45cdb39e814b4b73

commit 3030d29571e54b609ce8652a45cdb39e814b4b73
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-07-07 07:55:35 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-07-12 09:57:51 +0000

    pfctl: restore '.' at the end of these errors
    
    The sys/netpfil/pf/table:reset_nonzero test expects them, and we're better off
    not modifying errors without good reason.
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sbin/pfctl/pfctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index dca9bba06a3e..271286deeda7 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -3639,10 +3639,10 @@ pf_strerror(int errnum)
 {
 	switch (errnum) {
 	case ESRCH:
-		return "Table does not exist";
+		return "Table does not exist.";
 	case EINVAL:
 	case ENOENT:
-		return "Anchor does not exist";
+		return "Anchor does not exist.";
 	default:
 		return strerror(errnum);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507121338.56CDcsNQ089033>