<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libutil, branch release/11.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2020-02-12T02:04:03Z</updated>
<entry>
<title>MFC r357560, r357707: login.conf(5) mail capability</title>
<updated>2020-02-12T02:04:03Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-02-12T02:04:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5cf98b046e5d1347726d980ff14ba6df37638568'/>
<id>urn:sha1:5cf98b046e5d1347726d980ff14ba6df37638568</id>
<content type='text'>
r357560:
login.conf(5): split MAIL env var out into a "mail" capability

This allows it to be easily suppressed in, e.g., the "daemon" class where it
will not be properly expanded.

This is a part of D21481.

Submitted by:	Andrew Gierth &lt;andrew_tao173.riddles.org.uk&gt;

r357707:
login.conf(5): update commented-out standard, too

MAIL now has a mail capability, instead, as of r357560.
</content>
</entry>
<entry>
<title>MFC r336746, r336779</title>
<updated>2020-01-07T18:42:53Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2020-01-07T18:42:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=63130d63c639aa189b83dd67e340764293aebe1f'/>
<id>urn:sha1:63130d63c639aa189b83dd67e340764293aebe1f</id>
<content type='text'>
r336746:
Make pw_scan(3) more compatible with getpwent(3) et. al. when processing
data from /etc/passwd rather than /etc/master.passwd.

The libc getpwent(3) and related functions automatically read master.passwd
when run by root, or passwd when run by a non-root user.  When run by non-
root, getpwent() copes with the missing data by setting the corresponding
fields in the passwd struct to known values (zeroes for numbers, or a
pointer to an empty string for literals).  When libutil's pw_scan(3) was
used to parse a line without the root-accessible data, it was leaving
garbage in the corresponding fields.

These changes rename the static pw_init() function used by getpwent() and
friends to __pw_initpwd(), and move it into pw_scan.c so that common init
code can be shared between libc and libutil.  pw_scan(3) now calls
__pw_initpwd() before __pw_scan(), just like the getpwent() family does, so
that reading an arbitrary passwd file in either format and parsing it with
pw_scan(3) returns the same results as getpwent(3) would.

This also adds a new pw_initpwd(3) function to libutil, so that code which
creates passwd structs from scratch in some manner that doesn't involve
pw_scan() can initialize the struct to the values expected by lots of
existing code, which doesn't expect to encounter NULL pointers or garbage
values in some fields.

r336779:
Stop exporting __pw_scan and __pw_initpwd as freebsd-private libc functions
for use in libutil, and instead compile the small amount of common code
directly into libutil with a .PATH reachover.
</content>
</entry>
<entry>
<title>MFC 350179: expand_number(3) parses suffixes, not prefixes.</title>
<updated>2019-10-24T19:14:37Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2019-10-24T19:14:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=99bfca5a649fc3f8bf6e3baff33c9e9b736934ee'/>
<id>urn:sha1:99bfca5a649fc3f8bf6e3baff33c9e9b736934ee</id>
<content type='text'>
While here, tidy the opening sentence a bit.
</content>
</entry>
<entry>
<title>MFC r343881, r343882</title>
<updated>2019-09-03T04:50:39Z</updated>
<author>
<name>Sean Eric Fagan</name>
<email>sef@FreeBSD.org</email>
</author>
<published>2019-09-03T04:50:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2ccbd8b40ef8d08150d821c382e46f90e8a121b1'/>
<id>urn:sha1:2ccbd8b40ef8d08150d821c382e46f90e8a121b1</id>
<content type='text'>
r339008 broke repquota for UFS.  This rectifies that.

PR:		233849
</content>
</entry>
<entry>
<title>MFC r342640: Ensure buffer is nul-terminated.</title>
<updated>2019-01-15T06:52:34Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2019-01-15T06:52:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7f9e8187d45b739fdf0f9302127e46fad7a27f8e'/>
<id>urn:sha1:7f9e8187d45b739fdf0f9302127e46fad7a27f8e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r336017,r338799</title>
<updated>2018-09-29T00:44:23Z</updated>
<author>
<name>Sean Eric Fagan</name>
<email>sef@FreeBSD.org</email>
</author>
<published>2018-09-29T00:44:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=dc8f03b53541cf5cb6d1d1049944d68db99cf578'/>
<id>urn:sha1:dc8f03b53541cf5cb6d1d1049944d68db99cf578</id>
<content type='text'>
r336017
	This exposes ZFS user and group quotas via the normal
	quatactl(2) mechanism.  (Read-only at this point, however.)
	In particular, this is to allow rpc.rquotad query quotas
	for NFS mounts, allowing users to see their quotas on the
	hosts using the datasets.

	The changes specifically:

	* Add new RPC entry points for querying quotas.
	* Changes the library routines to allow non-UFS quotas.
	* Changes rquotad to check for quotas on mounted filesystems,
	rather than being limited to entries in /etc/fstab
	* Lastly, adds a VFS entry-point for ZFS to query quotas.

	Note that this makes one unavoidable behavioural change: if quotas
	are enabled, then they can be queried, as opposed to the current
	method of checking for quotas being specified in fstab.  (With
	ZFS, if there are user or group quotas, they're used, always.)

r338799
	Author: kib

	Fix ZFS VFS op quotactl to follow busy protocol.

Approved by: mav
Sponsored by: iXsystems, inc
</content>
</entry>
<entry>
<title>MFC r334547:</title>
<updated>2018-07-11T19:48:14Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2018-07-11T19:48:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=53059e9d5bfc1bb000915ae07ab72cd8a04fe95b'/>
<id>urn:sha1:53059e9d5bfc1bb000915ae07ab72cd8a04fe95b</id>
<content type='text'>
pty.3: Add a HISTORY section

These functions were first added in 4.3 BSD-Reno, according to
http://unix.superglobalmegacorp.com/ and the CSRG svn repository.

Reviewed by:	bcr, bjk
Differential Revision:	https://reviews.freebsd.org/D15652
</content>
</entry>
<entry>
<title>MFC r306098 (br): Use kqueue(2) instead of select(2).</title>
<updated>2018-07-04T18:01:53Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2018-07-04T18:01:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=80d7e7fc359886de3d96a4dc13f96682f06574c8'/>
<id>urn:sha1:80d7e7fc359886de3d96a4dc13f96682f06574c8</id>
<content type='text'>
This helps to ensure we will not lose SIGINT sent by parent to child.

PR:		212562, 228492
</content>
</entry>
<entry>
<title>MFC r327317:</title>
<updated>2018-07-03T14:40:19Z</updated>
<author>
<name>Bartek Rutkowski</name>
<email>robak@FreeBSD.org</email>
</author>
<published>2018-07-03T14:40:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0da88cf198479864e48a41c021c70ff896b41107'/>
<id>urn:sha1:0da88cf198479864e48a41c021c70ff896b41107</id>
<content type='text'>
humanize_number(3): fix math edge case in rounding large numbers

Fix for remainder overflow, when in rare cases adding remainder to divider
exceeded 1 and turned the total to 1000 in final formatting, taking up
the space for the unit character.

The fix continues the division of the original number if the above case
happens -- added the appropriate check to the for loop performing
the division. This lowers the value shown, to make it fit into the buffer
space provided (1.0M for 4+1 character buffer, as used by ls).

Add test case for the reported bug and extend test program to support
providing buffer length (ls -lh uses 5, tests hard-coded 4).

PR:		224498
</content>
</entry>
<entry>
<title>Revert r330897:</title>
<updated>2018-03-29T02:50:57Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2018-03-29T02:50:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4ab2e064d7950be84256d671a7ae93f87cc6aa36'/>
<id>urn:sha1:4ab2e064d7950be84256d671a7ae93f87cc6aa36</id>
<content type='text'>
This was intended to be a non-functional change. It wasn't. The commit
message was thus wrong. In addition it broke arm, and merged crypto
related code.

Revert with prejudice.

This revert skips files touched in r316370 since that commit was since
MFCed. This revert also skips files that require $FreeBSD$ property
changes.

Thank you to those who helped me get out of this mess including but not
limited to gonzo, kevans, rgrimes.

Requested by: gjb (re)
</content>
</entry>
</feed>
