aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mtree
Commit message (Collapse)AuthorAgeFilesLines
* Wording fixes.Christian Brueffer2010-05-141-2/+2
| | | | | | | | | PR: 143454 Submitted by: Warren Block <wblock@wonkity.com> MFC after: 3 days Notes: svn path=/head/; revision=208056
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theUlrich Spörlein2010-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 Notes: svn path=/head/; revision=208027
* Keep the list of default keywords sorted so that paranoid folks like meYaroslav Tykhiy2010-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 Notes: svn path=/head/; revision=206118
* o Remove a duplicate reference to -f flag in the SYNOPSYS section.Maxim Konovalov2010-03-301-4/+1
| | | | | | | | | | | o Improve wording. PR: docs/144407 Submitted by: gcooper MFC after: 1 week Notes: svn path=/head/; revision=205873
* Change all our own code to use st_*tim instead of st_*timespec.Ed Schouten2010-03-282-5/+5
| | | | | | | Also remove some local patches to diff(1) which are now unneeded. Notes: svn path=/head/; revision=205793
* Fix common misspelling of hierarchyUlrich Spörlein2010-02-201-2/+2
| | | | | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor) Notes: svn path=/head/; revision=204111
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | Notes: svn path=/head/; revision=201390
* Write timestamps with exactly 9 digits after the period.Tim 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. Notes: svn path=/head/; revision=187940
* Accept integer times. Previously, the field "time=1233294539" would beTim Kientzle2009-01-301-6/+7
| | | | | | | rejected as invalid. Notes: svn path=/head/; revision=187910
* Add the mtree.5 manpage. I'll come back soon andTim Kientzle2008-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 Notes: svn path=/head/; revision=175030
* When applying a spec, traverse the existing directory tree in lexicalDag-Erling Smørgrav2007-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 Notes: svn path=/head/; revision=174403
* mtree should use getcwd() instead of getwd(). getcwd() is safer,Giorgos Keramidas2007-11-021-1/+1
| | | | | | | | | | because it includes checks for the length of the buffer it uses. Reviewed by: phk, cperciva MFC after: 3 days Notes: svn path=/head/; revision=173282
* o Add an example how to create /etc/mtree style mtree(8) files.Maxim Konovalov2007-06-161-1/+12
| | | | | | | | | PR: docs/113667 Submitted by: edwin MFC after: 1 week Notes: svn path=/head/; revision=170822
* Markup fixes.Ruslan Ermilov2006-09-291-1/+1
| | | | Notes: svn path=/head/; revision=162806
* o Add an 'optional' keyword, which allows files to be in theMaxim Konovalov2006-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 Notes: svn path=/head/; revision=160083
* If we fail in chown(2), try to just change the group and continue on toBrian Somers2005-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 Notes: svn path=/head/; revision=148966
* Fix all the spelling mistakes I could find in the man pages for wordsGiorgos Keramidas2005-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. Notes: svn path=/head/; revision=148580
* Markup fixes.Ruslan Ermilov2005-06-141-1/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=147377
* Adds sha256 support. While it is a good idea to also add sha384 andAnton Berezin2005-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 Notes: svn path=/head/; revision=144295
* Expand *n't contractions.Ruslan Ermilov2005-02-131-3/+3
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-7/+7
| | | | Notes: svn path=/head/; revision=140442
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Remove extra "*/".Hidetoshi Shimokawa2004-08-071-2/+0
| | | | Notes: svn path=/head/; revision=133264
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareWarner Losh2004-08-072-5/+22
| | | | | | | (with permission of addtional copyright holders where appropriate) Notes: svn path=/head/; revision=133249
* Eliminated double whitespace.Ruslan Ermilov2004-07-031-2/+2
| | | | Notes: svn path=/head/; revision=131531
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-7/+13
| | | | Notes: svn path=/head/; revision=131500
* Improve spec to spec comparison output.Poul-Henning Kamp2004-06-141-3/+20
| | | | Notes: svn path=/head/; revision=130455
* Added forgotten -w to the usage().Ruslan Ermilov2004-06-041-1/+1
| | | | Notes: svn path=/head/; revision=130094
* Added forgotten -w to the SYNOPSIS.Ruslan Ermilov2004-06-041-4/+4
| | | | | | | Trim whitespace at EOL. Notes: svn path=/head/; revision=130092
* Get rid of "lineno: 0" in error messages from create mode.Poul-Henning Kamp2004-01-114-25/+42
| | | | | | | | Add -w(arning) flag which makes failure to look up uid/gid a nonfatal warning instead of an error. Notes: svn path=/head/; revision=124389
* collect all "extern bla" stuff in extern.h in order to get cross-filePoul-Henning Kamp2004-01-115-16/+8
| | | | | | | type checking. No bugs found. Notes: svn path=/head/; revision=124387
* Do not emit comments when -n is specified.Poul-Henning Kamp2004-01-081-5/+10
| | | | Notes: svn path=/head/; revision=124265
* The new "spec against spec" comparison code was yet another timePoul-Henning Kamp2003-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@ Notes: svn path=/head/; revision=123067
* Off by one error in malloc.Poul-Henning Kamp2003-11-191-1/+1
| | | | | | | Approved by: re@ Notes: svn path=/head/; revision=122896
* Fix a bug relating to the "files before directories" sort order whenPoul-Henning Kamp2003-11-131-0/+51
| | | | | | | comparing two spec files. Notes: svn path=/head/; revision=122612
* Add a small testcase for the new -f-f mode.Poul-Henning Kamp2003-11-051-0/+60
| | | | Notes: svn path=/head/; revision=122142
* Give mtree(8) the ability to take [two -f spec] arguments and comparePoul-Henning Kamp2003-11-057-8/+238
| | | | | | | the two specifications to each other. Notes: svn path=/head/; revision=122141
* Rename spec() and verify() functions to have mtree_ prefix and takePoul-Henning Kamp2003-11-054-13/+10
| | | | | | | explicit file descriptor instead of assuming stdin. Notes: svn path=/head/; revision=122135
* Take advantage of the fact that we know the err(3) function does notPoul-Henning Kamp2003-11-051-24/+14
| | | | | | | return to eliminate some else clauses and gain some "outdenting". Notes: svn path=/head/; revision=122134
* Fixed breakage of my world in rev.1.30. #include <sys/time.h> instead ofBruce Evans2003-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. Notes: svn path=/head/; revision=121853
* Make mtree's update function update the modification time too.Poul-Henning Kamp2003-10-313-3/+53
| | | | | | | | Submitted by: Dan Nelson <dnelson@allantgroup.com> PR: 53063 Notes: svn path=/head/; revision=121798
* Update test-case to also fail on filenames containing '#'Poul-Henning Kamp2003-10-301-0/+17
| | | | Notes: svn path=/head/; revision=121736
* Use vis(3) to encode/decode the target for symlinks.Poul-Henning Kamp2003-10-302-10/+13
| | | | | | | Make vis(3) decode errors fatal for both symlink targets and fienames. Notes: svn path=/head/; revision=121734
* Add another test-script for mtree(8): Check symlinks with space in them.Poul-Henning Kamp2003-10-301-0/+40
| | | | Notes: svn path=/head/; revision=121733
* Fix bug in mtree(8)'s create mode where files or directories with hadPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=121731
* Add a test script which Mtree fails.Poul-Henning Kamp2003-10-301-0/+51
| | | | Notes: svn path=/head/; revision=121730
* Remove clause 3 in the copyrights (according to permission in src/COPYRIGHT)Poul-Henning Kamp2003-10-219-47/+15
| | | | | | | Remove trailing whitespace. Notes: svn path=/head/; revision=121300
* Remove "register" keywords.Poul-Henning Kamp2003-10-216-60/+35
| | | | | | | Use newspeak functions definitions. Notes: svn path=/head/; revision=121299
* Get rid of duplicates.Ruslan Ermilov2003-09-141-1/+1
| | | | Notes: svn path=/head/; revision=120054
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-037-26/+26
| | | | Notes: svn path=/head/; revision=114601