summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree (follow)
Commit message (Collapse)AuthorAgeFilesLines
* More correction of section 3 layout. directory->opendir, fts->fts_open,deraadt2019-09-021-3/+3
| | | | | getcap->cgetent. pwcache->user_from_uid. And then repair references. ok jmc
* fix SEE ALSO;jmc2019-08-301-2/+2
|
* name these manual pages by the primary function, for instance therederaadt2019-08-301-6/+6
| | | | | is no function called md5() as discussed with jmc
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-283-6/+6
| | | | | | 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.
* Add missing includes for setpassent() and setgroupent().millert2018-09-161-1/+3
|
* Use user_from_uid(3), group_from_gid(3), uid_from_user(3) andmillert2018-09-163-22/+22
| | | | | | gid_from_group(3) to avoid repeatedly looking up the same user/group. Also keep the passwd and group files open to avoid opening and closing them all the time. OK tb@
* Mark error() as __dead so clang doesn't reportkrw2017-09-252-4/+4
| | | | | | | use of uninitialized variables after calls to error(). ok millert@ guenther@
* Nuke a bunch of whitespace nits seen while '%q' hunting.krw2016-08-164-15/+14
|
* %qd -> %lld + (long long) for off_t's.krw2016-08-142-5/+7
| | | | ok guenther@ natano@
* Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.guenther2016-08-141-2/+2
| | | | | | | Fix a type mismatch in ftp's "page" command and could make transfers restart at the wrong position. ok and a ull->ll tweak from natano@, ok tedu@
* Remove NULL-checks before free().mmcc2015-12-211-5/+3
|
* need to include err.h for err().benno2015-12-201-1/+2
| | | | ok deraadt@
* Add pledge(2). It is not currently possible to pledge -u and -Utb2015-12-191-1/+22
| | | | | | | | | | | because of chown(2) and chmod(2). If -u and -U aren't specified, the basic pledge is "stdio rpath getpw". "getpw" is used to resolve uid and gid to names and vice versa. The -r flag makes use of rmdir(2) and unlink(2), so we need "cpath" The -t flag uses utimes(2), so we need "fattr" ok deraadt@
* remove the first comma from constructs like ", and," and ", or,": you can usejmc2015-03-131-3/+3
| | | | | "and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-164-14/+14
| | | | | | | | | 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)
* do not list sha1 and sha256 in SEE ALSO, since md5 is already there, andjmc2014-01-101-4/+2
| | | | they're one and the same page now;
* remove erroneous char cast to switch expression processing getopt(3);okan2013-11-271-2/+2
| | | | | | not used in any cases. ok deraadt@, guenther@, millert@
* Correct format string mismatches turned up by -Wformat=2guenther2013-08-221-2/+2
| | | | suggestions and ok millert@
* handle large time_t types; ok millertderaadt2013-04-161-3/+3
|
* do not need -static anymorederaadt2013-04-151-2/+1
|
* workaround: link this static for a release, because the upgrade scriptderaadt2012-07-231-1/+2
| | | | | is doing something unbelievably stupid by running dynamic binaries. In about 4-5 months, someone remind me to undo this change.
* Add support for the "sha256digest" keyword to create/comparenaddy2012-07-086-14/+53
| | | | | | | 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@
* add an EXIT STATUS section for /usr/sbin;jmc2010-09-031-8/+8
|
* More delimiters that need quoting inside macros, hunted down by jmc@,schwarze2010-07-151-3/+3
| | | | who asked me to commit because he is just running out of the door.
* no more rmd160(1);jmc2010-07-131-3/+2
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-276-61/+6
| | | | | | | 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
* Fix wrong 'extern' declaration of crc_total in mtree's verify.c.stsp2009-01-091-3/+3
| | | | | Found by lint(1). ok kjell@ krw@ grange@
* Correct exit codes for extra files. PR 5072.kili2008-10-082-4/+7
| | | | Reminded by millert. ok millert, deraaadt
* fix two smalls bugs wrt contination lines.espie2008-06-131-4/+5
| | | | | | | | - continuation line at file start would segfault: make it change ginfo as it should instead. - empty continuation lines should be valid. okay millert@
* documentation tweaks.sobrado2008-05-171-3/+5
| | | | ok (some time ago) jmc@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* no need to escape a double dot sequence (..);jmc2005-10-151-2/+2
|
* sync the keywords list back into (alphabetical) order;jmc2005-10-151-7/+7
|
* Call open(2) with O_NONBLOCK and O_NOFOLLOW to make sure mtree can'tmillert2005-08-105-32/+42
| | | | | | | 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@
* -c is required when generating initial specification;jmc2004-12-301-2/+2
| | | | ok deraadt@
* more references to hier(7), from mickey;jmc2004-12-131-1/+5
|
* Use the same ordering when verifying as with creating and replaceotto2004-11-214-14/+14
| | | | | | | some hardcoded constants with symbolic ones. Noted by Ed Wandasiewicz in PR 3991. ok deraadt@ millert@
* ansi cleanup; khalek@linuxgamers.netderaadt2004-08-016-48/+23
|
* ansideraadt2004-07-093-10/+10
|
* setmode(3) returns void *, not mode_t *. ok millert@otto2004-07-011-3/+3
|
* Mtree needs the old crc routines; remove some extraneous includes whilemillert2004-05-025-17/+163
| | | | I am at it.
* Use MD5_DIGEST_STRING_LENGTHmillert2004-05-022-6/+6
|
* -t missing in synopsishenning2003-09-051-2/+2
| | | | | pr3444 jeffi@rcn.com ok jmc@
* escape punctuation; (and a nit in openssl.1)jmc2003-09-021-2/+2
| | | | ok deraadt@
* Add missing "break" in -s case and make usage() explicitly take void.millert2003-07-261-3/+4
| | | | From Andrey Matveev.
* strict proto cleanupsderaadt2003-06-262-8/+5
|
* Bitwise AND was used where logical AND was intended; from mpech@millert2003-06-161-3/+3
|
* - section reorderjmc2003-06-121-8/+8
| | | | | | - macro fixes - kill whitespace at EOL - new sentence, new line
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-029-59/+23
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* one more strvis -> strnvis.vincent2003-04-301-6/+9
| | | | ok millert