aboutsummaryrefslogtreecommitdiff
path: root/contrib/mtree/create.c
Commit message (Collapse)AuthorAgeFilesLines
* fts_read: Handle error from a NULL return better.Bryan Drewery2020-12-081-1/+3
| | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=368467
* mtree -c: Fix username logic when getlogin(3) fails.Bryan Drewery2019-09-121-1/+1
| | | | | | | | Obtained from: NetBSD (Credit to Sascha Wildner with DragonFlyBSD) MFC after: 2 weeks Notes: svn path=/head/; revision=352262
* Use type-independent formats for printing nlink_t and ino_t.Konstantin Belousov2017-01-061-1/+2
| | | | | | | | | | Extracted from: ino64 work by gleb, mckusick Discussed with: mckusick Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=311522
* Import in latest mtree from NetBSD to fix a bug in parsing group filesBrooks Davis2014-10-281-54/+58
| | | | | | | | | | that jmg fixed upstream. MFC after: 1 week Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=273796
* Sync with NetBSD. The funtional change is to make the output whenBrooks Davis2013-11-211-3/+3
| | | | | | | | | | | | comparing a directory to an mtree file more compatible with fmtree when FreeBSD 9 compatiblity mode is on. This output is clearly intended for humans not computers, but some tools such as mergemaster's -U option rely on it. MFC after: 3 days Notes: svn path=/head/; revision=258437
* Upgrade to the latest version of mtree from NetBSD. This revisionBrooks Davis2013-10-171-11/+12
| | | | | | | | | | | | | | | re-removes the printing of size for non-regular files, supports type-less root (.) entries as seen in a couple ports, and corrects a bug in -N that caused expanded Subversion $FreeBSD$ strings in comments to be processed as /etc/group entries. Includes one trivial portability fix (including <stdint.h> in three files) that has been submitted upstream but not yet committed. MFC after: 3 days Notes: svn path=/head/; revision=256687
* Import a new version of NetBSD's mtree.Ed Schouten2013-04-091-2/+6
| | | | | | | | | | | This version of mtree implements a new flag (-O) that can be used to restrict the tool to certain pathnames. Also, it fixes a compiler warning generated by -Wmissing-variable-declarations. Acked by: brooks Notes: svn path=/head/; revision=249293
* Add NetBSD's mtree to the tree and install it as nmtree as the first stepBrooks Davis2012-12-211-0/+467
towards replacing our mtree. Sponsored by: DARPA, AFRL Thanks to: cristos@NetBSD for reviewing and committing my patches wiz@NetBSD for fixing typos in my patches Notes: svn path=/head/; revision=244562