fmtree: add a deprecation notice to the manpageNote that this mtree(8) is actually installed as fmtree(8), whilemtree(8) is located in ^/contrib/mtree -- thus, the reference tomtree(8) makes a lo
fmtree: add a deprecation notice to the manpageNote that this mtree(8) is actually installed as fmtree(8), whilemtree(8) is located in ^/contrib/mtree -- thus, the reference tomtree(8) makes a lot more sense in the context in which folks wouldactually notice it. Shout-out to Ravi for pointing out that this maynot be an obvious fact.Relnotes: yes(cherry picked from commit 6fea22cebe5cb1e51e98c894a738bea910b7bc2f)
show more ...
fts_read: Handle error from a NULL return better.This is addressing cases such as fts_read(3) encountering an [EIO]from fchdir(2) when FTS_NOCHDIR is not set. That would otherwise beseen as a su
fts_read: Handle error from a NULL return better.This is addressing cases such as fts_read(3) encountering an [EIO]from fchdir(2) when FTS_NOCHDIR is not set. That would otherwise beseen as a successful traversal in some of these cases while silentlydiscarding expected work.As noted in r264201, fts_read() does not set errno to 0 on a successfulEOF so it needs to be set before calling it. Otherwise we might seea random error from one of the iterations.gzip is ignoring most errors and could be improved separately.Reviewed by: vangyzenSponsored by: Dell EMCDifferential Revision: https://reviews.freebsd.org/D27184
Avoid collisions with function names in openssl headers.Just using MD5, SHA1, RMD160 and SHA256 for defines collides withfunctions of the same name in OpenSSL. This can cause compilationissues in
Avoid collisions with function names in openssl headers.Just using MD5, SHA1, RMD160 and SHA256 for defines collides withfunctions of the same name in OpenSSL. This can cause compilationissues in downstream consumers if they use OpenSSL for the hashfunctions instead of libmd.Reviewed by: sjgObtained from: Juniper Networks, Inc.Differential Revision: https://reviews.freebsd.org/D26321
mtree: Fix -f -f not considering type changes.This only lists the changed type and not other attributes so that itmatches the behavior of -C as done in r66747 for fmtree. The NetBSD-ff implementa
mtree: Fix -f -f not considering type changes.This only lists the changed type and not other attributes so that itmatches the behavior of -C as done in r66747 for fmtree. The NetBSD-ff implementation was copied from fmtree.Reviewed by: impMFC after: 2 weeksRelnotes: yesDifferential Revision: https://reviews.freebsd.org/D21623
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
usr.sbin: normalize paths using SRCTOP-relative paths or :H when possibleThis simplifies make logic/outputMFC after: 1 monthSponsored by: Dell EMC Isilon
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is too pedantic, so give up on that point.Submitted by: Jan Schaumann <[email protected]>Pull Request: https://github.com/freebsd/freebsd/pull/96
Use type-independent formats for printing nlink_t and ino_t.Extracted from: ino64 work by gleb, mckusickDiscussed with: mckusickSponsored by: The FreeBSD FoundationMFC after: 1 week
Use NULL instead of 0 for pointers.fopen(3) returns NULL in case it can't open the STREAM.fgetln(3) returns NULL if it can't get a line from a STREAM.malloc returns NULL if it can't allocate memo
Use NULL instead of 0 for pointers.fopen(3) returns NULL in case it can't open the STREAM.fgetln(3) returns NULL if it can't get a line from a STREAM.malloc returns NULL if it can't allocate memory.
Rename usr.sbin/mtree to usr.sbin/fmtree since it is not what /usr/sbin/mtreeactually is (which is usr.sbin/nmtree).This has tricked me numerous times.