<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/usr.sbin/makefs/mtree.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2019-03-18T19:26:36Z</updated>
<entry>
<title>makefs: Fix "time" mtree attribute handling</title>
<updated>2019-03-18T19:26:36Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2019-03-18T19:26:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=286258a9a0e39cfce79d3b072a665b88bfb422c7'/>
<id>urn:sha1:286258a9a0e39cfce79d3b072a665b88bfb422c7</id>
<content type='text'>
When processing mtree(5) MANIFEST files, makefs(8) previously threw an
error if it encountered an entry whose "time" attribute contained a
non-zero subsecond component (e.g. time=1551620152.987220000).

Update the handling logic to properly assign the subsecond component if
built with nanosecond support, or silently discard it otherwise.

Also, re-enable the time attribute for the kyua tests.

PR:		194703
Submitted by:	Mitchell Horne &lt;mhorne063@gmail.com&gt;
Differential Revision:	https://reviews.freebsd.org/D19627
</content>
</entry>
<entry>
<title>makefs: Use ENODATA instead of ENOMSG as a translation for missing ENOATTR.</title>
<updated>2018-04-25T02:43:53Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-04-25T02:43:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=e2ec2f75f2fee8e4fd30a335541d55a9aad33d3a'/>
<id>urn:sha1:e2ec2f75f2fee8e4fd30a335541d55a9aad33d3a</id>
<content type='text'>
This is consistent with what some linux filesystems do and has been
adopted in our linuxulator.

MFC after:	3 days
</content>
</entry>
<entry>
<title>Allow xinstall and makefs to be crossbuilt on Linux and Mac</title>
<updated>2018-01-16T21:43:46Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2018-01-16T21:43:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5f40118235b74deaed9b9d9054756b9bf5b52128'/>
<id>urn:sha1:5f40118235b74deaed9b9d9054756b9bf5b52128</id>
<content type='text'>
I need these tools in order to install the crossbuilt FreeBSD and create a
disk image. Linux does not have a st_flags in struct stat so unfortunately
I need a bunch of ugly ifdefs. The resulting binaries allow me to
sucessfully install a MIPS64 world and create a disk-image that boots.

Reviewed By:	brooks, bdrewery, emaste
Approved By:	jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D13307
</content>
</entry>
<entry>
<title>various: general adoption of SPDX licensing ID tags.</title>
<updated>2017-11-27T15:37:16Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-27T15:37:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=1de7b4b805ddbf2429da511c053686ac4591ed89'/>
<id>urn:sha1:1de7b4b805ddbf2429da511c053686ac4591ed89</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified 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.

No functional change intended.
</content>
</entry>
<entry>
<title>Replace makefs' hand-rolled unescaping with strunvis</title>
<updated>2017-08-25T16:10:16Z</updated>
<author>
<name>Benno Rice</name>
<email>benno@FreeBSD.org</email>
</author>
<published>2017-08-25T16:10:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=88e2cc9eb56b714ac4e9f4cb064dc44a914bf773'/>
<id>urn:sha1:88e2cc9eb56b714ac4e9f4cb064dc44a914bf773</id>
<content type='text'>
mtree path names and link attributes are encoded, generally using strvis. Newer
versions of mtree will use C-style escapes but previously the accepted form was
octal escapes. makefs' mtree code spots the C-style escapes but fails to deal
with octal escapes correctly.

Remove mtree's escape-decoding code (except for a few instances where it's
needed) and instead pass pathnames and link targets through strunvis prior to
use.

Reviewed by:	marcel
MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D12104
</content>
</entry>
<entry>
<title>makefs: use C standard memcpy/memset in userland</title>
<updated>2017-06-12T13:49:57Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2017-06-12T13:49:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=83b6064de17f154d0b7d9d3355d5c745bd812104'/>
<id>urn:sha1:83b6064de17f154d0b7d9d3355d5c745bd812104</id>
<content type='text'>
This file does not exist in NetBSD's makefs, but make the chance for
consistency with memcpy/memset used in the rest of makefs.

Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>makefs: clean up signedness warnings and bump WARNS to 3</title>
<updated>2017-05-18T14:05:29Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2017-05-18T14:05:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=3afe6a68e0c9ed63a5101587e264657eb31102db'/>
<id>urn:sha1:3afe6a68e0c9ed63a5101587e264657eb31102db</id>
<content type='text'>
Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D10650
</content>
</entry>
<entry>
<title>makefs: use emalloc and friends</title>
<updated>2017-04-06T16:18:42Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2017-04-06T16:18:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5f5598b13024ac848af2f3de699e06bbcbcf29dc'/>
<id>urn:sha1:5f5598b13024ac848af2f3de699e06bbcbcf29dc</id>
<content type='text'>
The emalloc set of error-checking memory allocation routines were added
to libnetbsd in r316572. Use them in makefs to reduce differences with
NetBSD.

NetBSD revs:
cd9660.c			1.39
ffs.c				1.56
makefs.c			1.42
walk.c				1.27
cd9660/cd9660_archimedes.c	1.2
cd9660/cd9660_eltorito.c	1.20
cd9660/cd9660_write.c		1.16
cd9660/iso9660_rrip.c		1.12
ffs/buf.c			1.17
ffs/mkfs.c			1.26

Obtained from:	NetBSD
</content>
</entry>
<entry>
<title>Be more precise when including headers so that we're less likely to</title>
<updated>2016-10-25T16:29:15Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2016-10-25T16:29:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5d71efbecd873e18f487db1d88d9adb345963e95'/>
<id>urn:sha1:5d71efbecd873e18f487db1d88d9adb345963e95</id>
<content type='text'>
depend on namespace pollution and as such become more portable. This
means including headers like &lt;sys/types.h&gt; or &lt;stdlib.h&gt;, but also
making sure we include system/host headers before local headers.

While here: define ENOATTR as ENOMSG in mtree.c. There is no ENOATTR
on Linux.

With this, makefs is ready for compilation on macOS and Linux.
</content>
</entry>
<entry>
<title>Fix an off by one error to avoid overflowing rp[].</title>
<updated>2016-05-16T16:16:46Z</updated>
<author>
<name>Don Lewis</name>
<email>truckman@FreeBSD.org</email>
</author>
<published>2016-05-16T16:16:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=e29182f6c02c6946f62630af638f7257ba146683'/>
<id>urn:sha1:e29182f6c02c6946f62630af638f7257ba146683</id>
<content type='text'>
Reported by:	Coverity
CID:		1007579
</content>
</entry>
</feed>
