summaryrefslogtreecommitdiff
path: root/usr.sbin/mtree
AgeCommit message (Collapse)Author
2023-06-01mtree(8): a few markup fixesuwe
Didn't touch the section that describes the spec file format. We have the format documented here, in mtree(8), and we also have the format description in mtree(5) that comes from libarchive.
2021-04-03Deal with the case when a device gets recreated (eg when mtree is called bysimonb
MAKEDEV) and the stat buffer contains information about the original device before checking/setting the owner/group/mode of the new device file.
2021-03-18mtree: use POSIX type uint32_t instead of u_int32_tcheusov
2020-06-16Use more markup. Bump date for previous.wiz
2020-06-16Describe correctly how whitespace is formatted as the docs did notsborrill
match the source.
2018-12-13Use \(en.wiz
2018-12-13Fix naming inconsistency; PR 53769 from silas.dholland
2018-11-18Adjust test, we only want to return the structure member if the result is ↵sevan
not NULL. Heads up by Sascha Wildner @ DragonFly BSD.
2017-12-31factor out common code from Poul-Henning Kamp.christos
2017-12-14use uintmax_t for nlink_t from FreeBSDchristos
2017-09-07Don't modify strings stored in hash, otherwise filling up ofnakayama
directory hierarchy stops if the same hash value occurs in directory and leaf. Fix the issue that "./usr/share/locale/pl/LC_MESSAGES/gettext-tools.mo" isn't included in sets file in the case of MKUNPRIVED=no.
2017-02-22Fix typo.abhinav
2015-01-23fix tools build.christos
2015-01-23Pull into this year.wiz
2015-01-23attempt to reset file flags when -rrchristos
2015-01-07st_nlink on Linux is not int, so add an explicit cast.joerg
2014-10-27fix pasto; thanks John-Mark Gurney...christos
2014-04-24Pass a file pointer to write data instead of writing to stdout.christos
No functional change.
2014-03-31say why we can't use the password or the group databases.christos
2013-11-21From Brooks Davis:christos
When comparing a directory to an mtree file NetBSD mtree has output like this: xxx: size (4, 5) md5digest (0x6de9439834c9147569741d3c9c9fc010, 0xa5d119ab8edcda0ef7f381da8= f52f92f) =2E/yyy missing FreeBSD's historical behavior is this: xxx changed size expected 4 found 5 md5digest expected 6de9439834c9147569741d3c9c9fc010 found a5d119ab8edcda0e= f7f381da8f52f92f =2E/yyy missing FreeBSD's mergemaster -U command depends on the latter behavior so the following patch alters the freebsd9 mode of mtree to output that format. I don't think programs should rely on this output one way or another since it's clearly meant for humans, but this seems like the easiest short term fix.
2013-10-17Our <sys/param.h> ends up calling header files that define intmax_t. Thischristos
should not be the case (but >sys/param.h> is not a standard header so all bets are off). FreeBSD's does not, so explicitly include <stdint.h> to get it.
2013-10-16skip comment lines on password and group databases (Brooks Davis)christos
2013-10-16Default a bare "." with no type to F_DIR. For FreeBSD compatibility (Brookschristos
Davis)
2013-10-16Restore old behavior of not printing sizes for directories, since it varieschristos
depending on filesystem implementation. (Brooks Davis)
2013-09-09use intmax_t instead of long long. fixes wrong cast for time_t.christos
2013-04-08move flags only used in main() inside main(), from Ed Schoutenchristos
2013-02-05fill up the directory hierarchy so that leaf files are not ignored ifchristos
specified by themselves.
2013-02-03fix man page.christos
2013-02-03add the ability to only output paths included in a spec file when creatingchristos
from a directory (-c)
2012-12-20Typo fix.wiz
2012-12-20Add missing letter and use x.y versions for Fx/Nx.wiz
2012-12-20move flavor to misc.c because pax needs it.christos
2012-12-20joerg@: just use unsigned int pleasemlelstv
2012-12-20Implement the "flavor" output discussed in tech-userlevel@, by Brooks Davischristos
2012-12-15make us compatible with FreeBSD (for -n) (Brooks Davies)christos
2012-12-12- No mention of -t in the usage message or the manpage SYNOPSIS (Brooks Davis)christos
2012-12-12- No "j" in the getopt string. (Brooks Davis)christos
2012-12-12- two entries for rmd160digest in misc.c (Brooks Davis)christos
2012-12-12-n is incorrectly supressing the ".." lines. (Brooks Davis)christos
2012-10-07disable encoding of globbing characters for now.christos
2012-10-05Sync usage with man page.wiz
2012-10-05Fix typos; remove trailing whitespace; add missing options to SYNOPSIS.wiz
2012-10-05Fix typo in comment.wiz
2012-10-05Implement FreeBSD's "nochange" keyworld which causes the existance of achristos
filesystem object to be checked but none of its attiributes.(brooks)
2012-10-05Implement FreeBSD's "nochange" keyworld which causes the existance of achristos
filesystem object to be checked but none of its attributes. (brooks)
2012-10-05Encode literal global characters in files. Otherwise the results ofchristos
updating a directory using the resulting spec will be surprising. See http://svnweb.freebsd.org/base/head/usr.sbin/mtree/test/test00.sh for test cases. (brooks)
2012-10-05NetBSD needs <time.h>christos
2012-10-05Implement FreeBSD's -f spec1 -f spec2 spec comparision function. Thischristos
is more useful than -C and diff because it highlights the keys that have changed value so for example, you can see that the size of a file has not changed but the contents have. (brooks)
2012-10-05Allow uid and uname or gid and gname to both be printed whilechristos
preserving the behavior of falling back to [ug]id when the name is not resolvable. (brooks)
2012-10-05clarify seconds.09nanoseconds format (brooks)christos