summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/compare.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Nuke a bunch of whitespace nits seen while '%q' hunting.krw2016-08-161-7/+7
|
* %qd -> %lld + (long long) for off_t's.krw2016-08-141-3/+4
| | | | ok guenther@ natano@
* Remove NULL-checks before free().mmcc2015-12-211-5/+3
|
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+3
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Add support for the "sha256digest" keyword to create/comparenaddy2012-07-081-2/+19
| | | | | | | SHA-256 digests of files. In the man page, also replace SHA-1 with SHA-256 in the examples section. Man page formatting tweak and ok schwarze@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-9/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* Call open(2) with O_NONBLOCK and O_NOFOLLOW to make sure mtree can'tmillert2005-08-101-3/+3
| | | | | | | be halted by a FIFO or special device. Use fgetln() instead of fgets() to handle arbitrarily long lines. If a line starts with a comment char, don't check for line continuation char. Adapted from a diff by Solar Designer. OK deraadt@ henning@
* Use the same ordering when verifying as with creating and replaceotto2004-11-211-4/+4
| | | | | | | some hardcoded constants with symbolic ones. Noted by Ed Wandasiewicz in PR 3991. ok deraadt@ millert@
* ansi cleanup; khalek@linuxgamers.netderaadt2004-08-011-12/+6
|
* Use MD5_DIGEST_STRING_LENGTHmillert2004-05-021-3/+3
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Add missing includes, breaks and semicolons to appease gcc3; David Krausemillert2002-09-231-2/+3
| | | | deraadt@ OK
* kill more registers.mpech2002-03-141-5/+5
| | | | millert@ ok
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* add -l flag - do loose permissions checks, in which more stringent permissionsjakob2001-10-011-3/+19
| | | | will match less stringent ones. ok millert@, deraadt@.
* pass -Wallmillert2001-08-101-4/+5
|
* Add file flag support to mtree from henning@crackinghacking.demillert2001-08-101-2/+48
| | | | with man page update and minor tweaks by me.
* readlink len-1deraadt1998-05-181-3/+3
|
* err() -> error() so we don't conflict with err(3).millert1997-07-181-3/+3
|
* Add rmd160 support. Sheesh, you'd think this was tripwire.millert1997-07-181-2/+19
|
* Add sha1 digest support.millert1997-07-121-3/+19
|
* From NetBSD:millert1997-01-031-15/+32
| | | | | Add a `-t' (touch) option to update time stamps. Only record size for regular files.
* merge freebsd mtree diffs, plus -Wall cleanupderaadt1996-12-101-7/+25
|
* 64-bit clean + RCS tagsniklas1996-12-081-3/+3
|
* timespec members are now named tv_{,u}sectholo1996-03-021-4/+5
|
* from netbsd: add () in an expression even though it is not really neededderaadt1995-12-141-4/+4
|
* initial import of NetBSD treederaadt1995-10-181-0/+277