<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libutil, branch releng/12.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2018-07-27T19:47:42Z</updated>
<entry>
<title>Stop exporting __pw_scan and __pw_initpwd as freebsd-private libc functions</title>
<updated>2018-07-27T19:47:42Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2018-07-27T19:47:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=757e8bdbeaa7c5f83ae28a2dd314ea5cb94e8ba0'/>
<id>urn:sha1:757e8bdbeaa7c5f83ae28a2dd314ea5cb94e8ba0</id>
<content type='text'>
for use in libutil, and instead compile the small amount of common code
directly into libutil with a .PATH reachover.

Discussed with: kib@
</content>
</entry>
<entry>
<title>Make pw_scan(3) more compatible with getpwent(3) et. al. when processing</title>
<updated>2018-07-26T18:34:38Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2018-07-26T18:34:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=34e9190d82ac021bae00937cc1a663920aa19309'/>
<id>urn:sha1:34e9190d82ac021bae00937cc1a663920aa19309</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>This exposes ZFS user and group quotas via the normal</title>
<updated>2018-07-05T22:56:13Z</updated>
<author>
<name>Sean Eric Fagan</name>
<email>sef@FreeBSD.org</email>
</author>
<published>2018-07-05T22:56:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aad5531e716d37f9e0b0a0ee50499a33e63a1337'/>
<id>urn:sha1:aad5531e716d37f9e0b0a0ee50499a33e63a1337</id>
<content type='text'>
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.)

Reviewed by:	delphij, mav
Approved by:	mav
Sponsored by:	iXsystems Inc
Differential Revision:	https://reviews.freebsd.org/D15886
</content>
</entry>
<entry>
<title>pty.3: Add a HISTORY section</title>
<updated>2018-06-02T22:40:16Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2018-06-02T22:40:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8a46c08a2a47e0e6106013d722a8f8f93e09dcab'/>
<id>urn:sha1:8a46c08a2a47e0e6106013d722a8f8f93e09dcab</id>
<content type='text'>
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
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D15652
</content>
</entry>
<entry>
<title>Use __SCCSID() for SCCS IDs.</title>
<updated>2018-05-23T17:02:12Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2018-05-23T17:02:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=636402a76a8764bfb4004303be745bf43df417a1'/>
<id>urn:sha1:636402a76a8764bfb4004303be745bf43df417a1</id>
<content type='text'>
- Define NO__SCCSID in CFLAGS to preserve existing behavior of omitting
  SCCS IDs by default.
- While here, fix the $FreeBSD$ in pw_util.c to use __FBSDID.
</content>
</entry>
<entry>
<title>open.3: Use .Fa where appropriate</title>
<updated>2018-03-04T18:00:32Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2018-03-04T18:00:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7f0f2cbbdf52406e962cb33149908613fbe0ecc8'/>
<id>urn:sha1:7f0f2cbbdf52406e962cb33149908613fbe0ecc8</id>
<content type='text'>
Obtained From:	DragonFlyBSD (78732326a796ca521f3c0fe33c6fc9c695742ede)
</content>
</entry>
<entry>
<title>humanize_number(3): fix math edge case in rounding large numbers</title>
<updated>2017-12-28T22:57:34Z</updated>
<author>
<name>Bartek Rutkowski</name>
<email>robak@FreeBSD.org</email>
</author>
<published>2017-12-28T22:57:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e285e32e5615d20b4899c4f82d5c88a81ec49395'/>
<id>urn:sha1:e285e32e5615d20b4899c4f82d5c88a81ec49395</id>
<content type='text'>
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
Submitted by:	Pawel Biernacki &lt;pawel.biernacki@gmail.com&gt;
Reported by:	Masachika Ishizuka &lt;ish@amail.plala.or.jp&gt;
Reviewed by:	cem, kib
Approved by:	cem, kib
MFC after:	1 week
Sponsored by:	Mysterious Code Ltd.
Differential Revision:	D13578
</content>
</entry>
<entry>
<title>Close slave on fork error to prevent pty fd leak.</title>
<updated>2017-12-28T05:33:59Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-12-28T05:33:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7e8fba78890a6a52dc45dd49ec9f42480484b763'/>
<id>urn:sha1:7e8fba78890a6a52dc45dd49ec9f42480484b763</id>
<content type='text'>
CID: 978209
</content>
</entry>
<entry>
<title>lib: further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-26T02:00:33Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-26T02:00:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5e53a4f90f82c4345f277dd87cc9292f26e04a29'/>
<id>urn:sha1:5e53a4f90f82c4345f277dd87cc9292f26e04a29</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
</content>
</entry>
<entry>
<title>General further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-20T19:49:47Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-20T19:49:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8a16b7a18f5d0b031f09832fd7752fba717e2a97'/>
<id>urn:sha1:8a16b7a18f5d0b031f09832fd7752fba717e2a97</id>
<content type='text'>
Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
</content>
</entry>
</feed>
