<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libutil, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-03-03T22:51:02Z</updated>
<entry>
<title>libutil: avoid an out-of-bounds read in trimdomain(3)</title>
<updated>2026-03-03T22:51:02Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2026-03-03T22:51:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f268f95955f5f0f91f4d39e13bcd69a24e0d8ce4'/>
<id>urn:sha1:f268f95955f5f0f91f4d39e13bcd69a24e0d8ce4</id>
<content type='text'>
memchr(3) will happily believe we've passed in a valid object, but
hostsize could easily exceed the bounds of fullhost.  Clamp it down to
the string size to be safe and avoid UB.  This plugs a potential
overread noted in the compat shim that was just added.

Reviewed by:	des
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D54623
</content>
</entry>
<entry>
<title>libutil: take a size_t in trimdomain()</title>
<updated>2026-03-03T22:51:01Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2026-03-03T22:51:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7e70589b1bee4853cb11e3d8eb963079b18ff534'/>
<id>urn:sha1:7e70589b1bee4853cb11e3d8eb963079b18ff534</id>
<content type='text'>
INT_MAX is already larger than a reasonable hostname might be, but
size_t makes some of this easier to reason about as we do arithmetic
with it.  This would maybe not be worth it if we had to bump the
soversion because of it, but libutil does symbol versioning now so we
can provide a compat shim.

While we're here, fix some inconsistencies in argument names in the
manpage.

Reviewed by:	des
Obtained from:	https://github.com/apple-oss-distributions/libutil
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D54622
</content>
</entry>
<entry>
<title>trimdomain.3: Explain DISPLAY a bit more</title>
<updated>2026-02-17T17:28:25Z</updated>
<author>
<name>Alexander Ziaee</name>
<email>ziaee@FreeBSD.org</email>
</author>
<published>2026-02-17T17:22:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=960719762f0a1f6689ec58bc6d8ce21c4daa9096'/>
<id>urn:sha1:960719762f0a1f6689ec58bc6d8ce21c4daa9096</id>
<content type='text'>
MFC after:		3 days
Reported by:		jrtc27
Reviewed by:		des
Differential Revision:	https://reviews.freebsd.org/D54629
</content>
</entry>
<entry>
<title>login.conf.5: Remove mention of login copyright setting</title>
<updated>2026-01-09T21:13:37Z</updated>
<author>
<name>Simon Wollwage</name>
<email>rootnode+freebsd@wollwage.com</email>
</author>
<published>2025-12-15T06:27:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=54ce6b2c4c163d85b2a8804edbac69d4e8cb3355'/>
<id>urn:sha1:54ce6b2c4c163d85b2a8804edbac69d4e8cb3355</id>
<content type='text'>
PR: 291649
Fixes: 905571c03119 ("Remove copyright strings printed at login time via login(1) or sshd(8).")
Signed-off-by: Simon Wollwage rootnode+freebsd@wollwage.com
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1926
</content>
</entry>
<entry>
<title>libutil: defer setting the MAC label until after the login class</title>
<updated>2025-10-29T02:37:21Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2025-10-29T02:37:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=98edcbcce0a4650084bd86e704cfa38bf590250c'/>
<id>urn:sha1:98edcbcce0a4650084bd86e704cfa38bf590250c</id>
<content type='text'>
MAC policies, like mac_biba(4), may forbid changing the login class once
a label has been applied.  For setting up the initial login context,
this isn't really expected and in-fact may break some class-based
configuration.

Defer setting the MAC label until after the login class is set, and
remove the requirement that we have a pwd entry since the label is
pulled from the login class -- we only use pwd for syslog in this path.

Patch is largely by Kevin Barry, with some modifications and this commit
message by kevans@.

PR:		177698
Reviewed by:	des, olce
MFC after:	3 days
Co-authored-by:	Kevin Barry &lt;ta0kira gmail com&gt;
Differential Revision:	https://reviews.freebsd.org/D53362
</content>
</entry>
<entry>
<title>packages: Install development manpages in the -dev package</title>
<updated>2025-10-26T02:26:06Z</updated>
<author>
<name>Lexi Winter</name>
<email>ivy@FreeBSD.org</email>
</author>
<published>2025-10-25T17:33:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=031e711647c3edc3021c1029496d6798a632697e'/>
<id>urn:sha1:031e711647c3edc3021c1029496d6798a632697e</id>
<content type='text'>
Add a new per-group SUBPACKAGE option to bsd.man.mk.  When MANSPLITPKG
is enabled, this is forced to "-man", otherwise it defaults to empty
but can be overridden by the caller.

Use this in bsd.lib.mk to install library manpages in the -dev package
instead of the base package.  This is nearly always preferable, since
library manpages are usually in section 2 or 3 and are only relevant
to people with development packages installed.

For manpages which should be installed in the base package even for
libraries, add a new MANNODEV group in bsd.lib.mk.  Update existing
Makefiles to use this where appropriate.

MFC after:	3 days
Discussed with:	olce
Reviewed by:	olce
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D52832
</content>
</entry>
<entry>
<title>Fix getmntpoint(3) to operate as it is documented in its manual page.</title>
<updated>2025-10-22T18:01:37Z</updated>
<author>
<name>Kirk McKusick</name>
<email>mckusick@FreeBSD.org</email>
</author>
<published>2025-10-22T18:01:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=99bf680a8499dea71db5da705dfe41f4bb5e00ab'/>
<id>urn:sha1:99bf680a8499dea71db5da705dfe41f4bb5e00ab</id>
<content type='text'>
The -libutil function getmntpoint(3) is documented as accepting a device
name “with or without /dev/ prepended to it” but did not attempt to
prepend /dev/. This patch corrects the problem by prepending /dev/ to
names that do not begin with a '/'.

Reported-by: Dag-Erling Smørgrav
Differential Revision: https://reviews.freebsd.org/D53185
MFC-after:    1 week
Sponsored-by: Netflix
</content>
</entry>
<entry>
<title>Remove ftpd(8)</title>
<updated>2025-09-29T21:53:34Z</updated>
<author>
<name>Lexi Winter</name>
<email>ivy@FreeBSD.org</email>
</author>
<published>2025-09-29T20:26:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=614c8750ce116865953916b8b5bab2467ee94187'/>
<id>urn:sha1:614c8750ce116865953916b8b5bab2467ee94187</id>
<content type='text'>
This was previously deprecated and is slated for removal in 15.0.
Users who still need ftpd(8) can install the ftp/freebsd-ftpd port.

Retain the ftp(d) PAM services since other FTP daemons use them.

Update /etc/inetd.conf to point to /usr/local.

Add ftpd to ObsoleteFiles, but do not list configuration files since
users may want to preserve these to use with the freebsd-ftpd port.

There is still some language in the manual referring to ftpd(8)
which is relevant to the port, which has been retained but updated
to reference the port.

MFC after:	3 days
Relnotes:	yes
Reviewed by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D52739
</content>
</entry>
<entry>
<title>getmntpoint: Don't compare st_rdev for non-devices</title>
<updated>2025-08-17T17:29:27Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-08-17T17:07:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8073a5137f223bb481606b15edaa5ecb93ceffcb'/>
<id>urn:sha1:8073a5137f223bb481606b15edaa5ecb93ceffcb</id>
<content type='text'>
If the mntfromname of a mountpoint is not a device (e.g. nullfs, tarfs,
procfs) we shouldn't compare st_rdev, as any match will be spurious.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D51945
</content>
</entry>
<entry>
<title>libutil: Fix manlint failures</title>
<updated>2025-08-12T12:55:01Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-08-12T12:54:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0cc09fcdb4a3192fb76c95b1bd3c7f31a4cf486'/>
<id>urn:sha1:d0cc09fcdb4a3192fb76c95b1bd3c7f31a4cf486</id>
<content type='text'>
MFC after:	1 week
Reviewed by:	ziaee
Differential Revision:	https://reviews.freebsd.org/D51864
</content>
</entry>
</feed>
