<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/du, branch upstream/13.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-04-22T09:41:39Z</updated>
<entry>
<title>du_test: Skip three tests if sparse files are not supported</title>
<updated>2021-04-22T09:41:39Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-02-03T16:07:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=436fcd12f20d80cbbbaeb55b8a639f02e6372929'/>
<id>urn:sha1:436fcd12f20d80cbbbaeb55b8a639f02e6372929</id>
<content type='text'>
This fixes running the du tests with /tmp as tmpfs (which is what we do in the
CheriBSD CI).

Obtained from:	CheriBSD
Reviewed By:	ngie
Differential Revision: https://reviews.freebsd.org/D28398

(cherry picked from commit 39a1f858ad735ef816a9b1fb7eeade2c6802eb98)
</content>
</entry>
<entry>
<title>du: tests: use dollar-single quotes where appropriate</title>
<updated>2021-02-04T03:16:51Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-01-29T03:01:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ca9e7ac2fbbbb393a0221ff96ae03f9cac1745b3'/>
<id>urn:sha1:ca9e7ac2fbbbb393a0221ff96ae03f9cac1745b3</id>
<content type='text'>
No need for "foo$(printf "\t")", $'\t' is both more readable and still
functional.

(cherry picked from commit bf59049c27ef86669a94ffd43f7216107b5c57ff)
</content>
</entry>
<entry>
<title>du: tests: make H_flag tests more strict about output requirements</title>
<updated>2021-01-07T22:37:28Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-01-05T21:49:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3c5c39c7ad8f010cfa5fc0db43d15d1964b4cf16'/>
<id>urn:sha1:3c5c39c7ad8f010cfa5fc0db43d15d1964b4cf16</id>
<content type='text'>
The current version of this test will effectively pass as long as one of the
specified paths is in the output, and it could even be a subset of one of
the paths.

Strengthen up the test a little bit:
  * Specify beginning/end anchors for each path
  * Add egrep -v checks to make sure we don't have any *additional* paths
  * Ratchet down paths2 to exactly the two paths we expect to appear

Reviewed by:	ngie
Differential Revision:	https://reviews.freebsd.org/D27984
</content>
</entry>
<entry>
<title>du: tests: fix the H_flag test (primarily grep usage)</title>
<updated>2021-01-07T22:36:31Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-01-05T21:33:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4832d2e8ae1df6f907ac00275764f8135722cb7e'/>
<id>urn:sha1:4832d2e8ae1df6f907ac00275764f8135722cb7e</id>
<content type='text'>
This test attempts to use \t (tab intended) in a grep expression.  With the
former /usr/bin/grep (i.e. gnugrep), this was interpreted as a literal 't'.
The expression would work anyways because the tr(1) usage would ultimately
replace all of the spaces with a single newline, and they would match the
paths whether they were correctly fromatted or not.

Current /usr/bin/grep (i.e. bsdgrep) is less-tolerant of ordinary-escapes, a
property of the underlying regex(3) engine, to make it easier to identify
when stuff like this happens. In-fact, this expression broke after the
switch happened.

This revision does the bare basics to fix the usage by using a printf to get
a literal tab character to insert into the expression. It also swaps out the
manual insertion of the line prefix into the grep expression by pulling
that part out of $sep and reusing it for the leading path.

The secondary issue was the tr(1) usage, since tr would only replace the
first character of string1 with the first character of string2.  This has
instead been replaced by a sed expression, which similary understands \n to
be a newline on all supported versions of FreeBSD.  Each path now gets
prefixed with the appropriate context that should be there (i.e. numeric
sequence followed by a tab).

PR:		252446
Reviewed by:	emaste, ngie
Differential Revision:	https://reviews.freebsd.org/D27983
</content>
</entry>
<entry>
<title>fts_read: Handle error from a NULL return better.</title>
<updated>2020-12-08T23:38:26Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2020-12-08T23:38:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2dfa4b66b3d0caaaae6ce2df476b5615f8415a19'/>
<id>urn:sha1:2dfa4b66b3d0caaaae6ce2df476b5615f8415a19</id>
<content type='text'>
This is addressing cases such as fts_read(3) encountering an [EIO]
from fchdir(2) when FTS_NOCHDIR is not set.  That would otherwise be
seen as a successful traversal in some of these cases while silently
discarding expected work.

As noted in r264201, fts_read() does not set errno to 0 on a successful
EOF so it needs to be set before calling it.  Otherwise we might see
a random error from one of the iterations.

gzip is ignoring most errors and could be improved separately.

Reviewed by:	vangyzen
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D27184
</content>
</entry>
<entry>
<title>Fix a few mandoc issues</title>
<updated>2020-10-09T14:03:45Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2020-10-09T14:03:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6d6d6c360322227ba838c53ed72d31937a425800'/>
<id>urn:sha1:6d6d6c360322227ba838c53ed72d31937a425800</id>
<content type='text'>
- no blank before trailing delimiter
- whitespace at end of input line
- sections out of conventional order
- normalizing date format
- AUTHORS section without An macro
</content>
</entry>
<entry>
<title>pkgbase: Put a lot of binaries and lib in FreeBSD-runtime</title>
<updated>2019-09-05T14:13:08Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2019-09-05T14:13:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a7b5a3d48640f3f5898b05328d71c2949b6b7098'/>
<id>urn:sha1:a7b5a3d48640f3f5898b05328d71c2949b6b7098</id>
<content type='text'>
All of them are needed to be able to boot to single user and be able
to repair a existing FreeBSD installation so put them directly into
FreeBSD-runtime.

Reviewed by:    bapt, gjb
Differential Revision:  https://reviews.freebsd.org/D21503
</content>
</entry>
<entry>
<title>Flesh out the STANDARDS and AUTHORS sections in the du(1) man page.</title>
<updated>2019-08-08T21:16:15Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2019-08-08T21:16:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bbb4c4d8bbf5b6d06866517d9ade05bf3cef445e'/>
<id>urn:sha1:bbb4c4d8bbf5b6d06866517d9ade05bf3cef445e</id>
<content type='text'>
PR:		239722
Submitted by:	Gordon Bergling &lt;gbergling@gmail.com&gt;
MFC after:	3 days
</content>
</entry>
<entry>
<title>Update the spelling of my name</title>
<updated>2019-04-22T17:52:46Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2019-04-22T17:52:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=da5069e1f7daaef1e7157876d6044de6f3a08ce2'/>
<id>urn:sha1:da5069e1f7daaef1e7157876d6044de6f3a08ce2</id>
<content type='text'>
Previous spellings of my name (NGie, Ngie) weren't my legal spelling. Use Enji
instead for clarity.

While here, remove "All Rights Reserved" from copyrights I "own".

MFC after:	1 week
</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>
