[Bug 295623] Wrong type used for pipebuf in login.conf/cap_mkdb/login_class

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 26 May 2026 19:31:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295623

            Bug ID: 295623
           Summary: Wrong type used for pipebuf in
                    login.conf/cap_mkdb/login_class
           Product: Base System
           Version: 15.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: rozhuk.im@gmail.com

According to man login.conf pipebuf have SIZE type, but it is interpreted as
NUMBER by cap_mkdb and ulimits -a.

So login.conf with:
        :memorylocked=64K:\
        :pipebuf=128M:\
will silently fail to make correct db.

login.conf with:
        :memorylocked=64K:\
        :pipebuf=134217728:\
make correct db.


Please:
1. Set correct type for pipebuf to SIZE in parsers.
2. Fix cap_mkdb to return warnings in case type parse error instead silently
set zero.

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