git: 34fc5ccbc553 - stable/14 - login_class: Fix kqueues, pipebuf resource types
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Jun 2026 14:40:50 UTC
The branch stable/14 has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=34fc5ccbc5534290dd874ea4bb50fac428621193
commit 34fc5ccbc5534290dd874ea4bb50fac428621193
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-05-29 22:06:44 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-06-04 14:40:29 +0000
login_class: Fix kqueues, pipebuf resource types
* kqueues is a count but is listed as a size
* pipebuf is a size but is listed as a count
PR: 295623
MFC after: 1 week
Fixes: a4c04958f526 ("libutil: support RLIMIT_PIPEBUF")
Fixes: 85a0ddfd0b26 ("Add a resource limit for the total...")
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D57333
(cherry picked from commit b5dce0ae4f78251f56ffcb6c6a58b9e6c20380e0)
---
lib/libutil/login_class.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
index db0218f94371..31db5574dfa5 100644
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -64,9 +64,9 @@ static struct login_res {
{ "vmemoryuse", login_getcapsize, RLIMIT_VMEM },
{ "pseudoterminals", login_getcapnum, RLIMIT_NPTS },
{ "swapuse", login_getcapsize, RLIMIT_SWAP },
- { "kqueues", login_getcapsize, RLIMIT_KQUEUES },
+ { "kqueues", login_getcapnum, RLIMIT_KQUEUES },
{ "umtxp", login_getcapnum, RLIMIT_UMTXP },
- { "pipebuf", login_getcapnum, RLIMIT_PIPEBUF },
+ { "pipebuf", login_getcapsize, RLIMIT_PIPEBUF },
{ NULL, 0, 0 }
};