summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree
Commit message (Collapse)AuthorAgeFilesLines
* Always install our mtree as /usr/sbin/fmtree and link it asbrooks2013-01-091-2/+14
| | | | | | | /usr/sbin/mtree by default. Add a src.conf option WITH_NMTREE that causes NetBSD's mtree to be linked as /usr/sbin/mtree as well as /usr/sbin/nmtree.
* More -Wmissing-variable-declarations fixes.ed2012-10-201-1/+2
| | | | | | | | | | In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. - libexec/rpc.rusersd: Move shared globals into an extern.h. - libexec/talkd: Move `debug' and `hostname' into extern.h. - usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree. - usr.bin/m4: Move `end_result' into extern.h. - usr.sbin/services_mkdb: Move shared globals into an extern.h.
* Remove superfluous paragraph macro.joel2012-03-251-1/+0
|
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-031-2/+2
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* - fix duplicate "a a" in some commentseadler2011-11-131-1/+1
| | | | | | Submitted by: eadler Approved by: simon MFC after: 3 days
* Wording fixes.brueffer2010-05-141-2/+2
| | | | | | PR: 143454 Submitted by: Warren Block <wblock@wonkity.com> MFC after: 3 days
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-131-11/+11
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* Keep the list of default keywords sorted so that paranoid folks like meyar2010-04-031-1/+1
| | | | | | | | don't try to find a hidden meaning in the strange order. The list used to be sorted in rev. 1.1 from 4.4BSD but the order was broken as soon as in rev. 1.2 by a single-character fix. MFC after: 3 days
* o Remove a duplicate reference to -f flag in the SYNOPSYS section.maxim2010-03-301-4/+1
| | | | | | | | o Improve wording. PR: docs/144407 Submitted by: gcooper MFC after: 1 week
* Change all our own code to use st_*tim instead of st_*timespec.ed2010-03-282-5/+5
| | | | Also remove some local patches to diff(1) which are now unneeded.
* Fix common misspelling of hierarchyuqs2010-02-201-2/+2
| | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-2/+0
|
* Write timestamps with exactly 9 digits after the period.kientzle2009-01-314-3/+9
| | | | | | | | | | This ensures that the value written is both compatible with older mtree versions (which expect the value after the period to be an integer count of nanoseconds after the whole second) and is a correct floating-point value. Leave the parsing code unchanged so it will continue to read older files.
* Accept integer times. Previously, the field "time=1233294539" would bekientzle2009-01-301-6/+7
| | | | rejected as invalid.
* Add the mtree.5 manpage. I'll come back soon andkientzle2008-01-012-1/+271
| | | | | | | | | remove the format specification from mtree.8. I also need to reconcile a few issues between this mtree.5 and what is actually implemented in FreeBSD's mtree utility. MFC after: 30 days
* When applying a spec, traverse the existing directory tree in lexicaldes2007-12-071-1/+7
| | | | | | | | order. This allows direct comparison of the output of two different runs, regardless of the order in which readdir(2) returns directory entries. MFC after: 3 weeks
* mtree should use getcwd() instead of getwd(). getcwd() is safer,keramida2007-11-021-1/+1
| | | | | | | because it includes checks for the length of the buffer it uses. Reviewed by: phk, cperciva MFC after: 3 days
* o Add an example how to create /etc/mtree style mtree(8) files.maxim2007-06-161-1/+12
| | | | | | PR: docs/113667 Submitted by: edwin MFC after: 1 week
* Markup fixes.ru2006-09-291-1/+1
|
* o Add an 'optional' keyword, which allows files to be in themaxim2006-07-036-1/+36
| | | | | | | | | | specification, but not in the file hierarchy. PR: bin/99531 Submitted by: skv Obtained from: NetBSD, originally from Ed Symanzik Regress. test: test/test05.sh MFC after: 1 month
* If we fail in chown(2), try to just change the group and continue on tobrian2005-08-111-10/+28
| | | | | | | | | | | change the permissions. Failures are still recorded. This allows mtree to do a generally better job of things when uid != 0. Sponsored by: ActiveState/Sophos Partially submitted by: neilw at ActiveState dot com Reviewed by: neilw at ActiveState dot com MFC after: 3 weeks
* Fix all the spelling mistakes I could find in the man pages for wordskeramida2005-07-311-1/+1
| | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these.
* Markup fixes.ru2005-06-141-1/+1
| | | | Approved by: re (blanket)
* Adds sha256 support. While it is a good idea to also add sha384 andtobez2005-03-299-9/+67
| | | | | | | | | | | | | | sha512, I did not do that since it is not entirely clear where "the one true place" to hold their implementations is going to be. Sha256 is different since mtree already links against libmd. Make recommended procedure for integrity checking in the manpage consistent. Fix a bug with -f spec1 -f spec2 comparison, which prevented test/tes03.sh from running successfully. Reviewed by: phk, cperciva
* Expand *n't contractions.ru2005-02-131-3/+3
|
* Sort sections.ru2005-01-181-7/+7
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Remove extra "*/".simokawa2004-08-071-2/+0
|
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareimp2004-08-072-5/+22
| | | | (with permission of addtional copyright holders where appropriate)
* Eliminated double whitespace.ru2004-07-031-2/+2
|
* Mechanically kill hard sentence breaks.ru2004-07-021-7/+13
|
* Improve spec to spec comparison output.phk2004-06-141-3/+20
|
* Added forgotten -w to the usage().ru2004-06-041-1/+1
|
* Added forgotten -w to the SYNOPSIS.ru2004-06-041-4/+4
| | | | Trim whitespace at EOL.
* Get rid of "lineno: 0" in error messages from create mode.phk2004-01-114-25/+42
| | | | | Add -w(arning) flag which makes failure to look up uid/gid a nonfatal warning instead of an error.
* collect all "extern bla" stuff in extern.h in order to get cross-filephk2004-01-115-16/+8
| | | | type checking. No bugs found.
* Do not emit comments when -n is specified.phk2004-01-081-5/+10
|
* The new "spec against spec" comparison code was yet another timephk2003-11-301-7/+22
| | | | | | | victim of the special sort order employed where files come before directories and alphabetic inside these two groups. Approved by: re@
* Off by one error in malloc.phk2003-11-191-1/+1
| | | | Approved by: re@
* Fix a bug relating to the "files before directories" sort order whenphk2003-11-131-0/+51
| | | | comparing two spec files.
* Add a small testcase for the new -f-f mode.phk2003-11-051-0/+60
|
* Give mtree(8) the ability to take [two -f spec] arguments and comparephk2003-11-057-8/+238
| | | | the two specifications to each other.
* Rename spec() and verify() functions to have mtree_ prefix and takephk2003-11-054-13/+10
| | | | explicit file descriptor instead of assuming stdin.
* Take advantage of the fact that we know the err(3) function does notphk2003-11-051-24/+14
| | | | return to eliminate some else clauses and gain some "outdenting".
* Fixed breakage of my world in rev.1.30. #include <sys/time.h> instead ofbde2003-11-011-13/+9
| | | | | | | | | | | | | depending on namespace pollution in <sys/stat.h> for the declarations of struct timeval and utimes(). Fixed some style bugs in rev.1.30 and some nearby style bugs (mainly unsorting and missing or extra blank lines). Removed a wrong comment that was obtained from NetBSD in rev.1.14. It said that chflags() reset the times that were set "above" by utimes(), but utimes wasn't "above" in FreeBSD until rev.1.30, and chflags() does't actually reset the times.
* Make mtree's update function update the modification time too.phk2003-10-313-3/+53
| | | | | Submitted by: Dan Nelson <dnelson@allantgroup.com> PR: 53063
* Update test-case to also fail on filenames containing '#'phk2003-10-301-0/+17
|
* Use vis(3) to encode/decode the target for symlinks.phk2003-10-302-10/+13
| | | | Make vis(3) decode errors fatal for both symlink targets and fienames.
* Add another test-script for mtree(8): Check symlinks with space in them.phk2003-10-301-0/+40
|
* Fix bug in mtree(8)'s create mode where files or directories with hadphk2003-10-301-1/+1
| | | | | | | | names containing glob(3) expressions would appear verbatim in the output. If such an mtree file were used by mtree in update mode, wrong things would happen.
OpenPOWER on IntegriCloud