aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mtree
Commit message (Collapse)AuthorAgeFilesLines
* 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
* The -s option should not assume -U.Anton Berezin2003-03-191-0/+1
| | | | | | | MFC After: 2 weeks Notes: svn path=/head/; revision=112403
* - Align the function prototype of the external `crc' function withRobert Drehmel2003-03-135-13/+11
| | | | | | | | | | | | | | | | | how `crc' is actually defined. - Remove an unnecessary `extern' variable declaration. Data type corrections: - Define a variable which contains a file byte offset value as type off_t as required by the `crc' function. - Change the type of a variable carrying a CRC checksum from `u_long' to `uint32_t'. - Substitute the wrong `extern' variable declaration of `crc_total' by putting a correct one in the shared header extern.h. `crc_total' is defined as an `uint32_t', thus fixing incorrect mtree checksums on big-endian LP64 machines. Notes: svn path=/head/; revision=112214
* Fix two minor mismatch reporting output errors.Anton Berezin2003-03-131-2/+2
| | | | | | | | Reviewed by: phk MFC After: 3 weeks Notes: svn path=/head/; revision=112194
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* mtree(8) wasn't a bootstrap tool since 2000/07/23 (Makefile.inc1,v 1.161).Ruslan Ermilov2002-11-131-5/+0
| | | | Notes: svn path=/head/; revision=106849
* Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the structGarrett Wollman2002-09-211-2/+2
| | | | | | | | | | | | | | | | | | | hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype. Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally. Not objected to in spirit by: -arch Notes: svn path=/head/; revision=103726
* Get rid of %qd, and unbreak Alpha build.Dag-Erling Smørgrav2002-07-152-3/+6
| | | | Notes: svn path=/head/; revision=100070
* The .Nm utilityPhilippe Charnier2002-07-141-2/+2
| | | | Notes: svn path=/head/; revision=99968
* fixup for WARNS=4.Alfred Perlstein2002-07-118-19/+23
| | | | Notes: svn path=/head/; revision=99802
* de-__P()Alfred Perlstein2002-07-117-24/+23
| | | | Notes: svn path=/head/; revision=99800
* Assume __STDC__, remove non-__STDC__ code.Alfred Perlstein2002-05-281-16/+0
| | | | Notes: svn path=/head/; revision=97421
* Consistancy check: s/file system/filesystem/gTom Rhodes2002-05-161-1/+1
| | | | Notes: svn path=/head/; revision=96705
* Typo.Masafumi Max NAKANE2002-05-101-1/+1
| | | | Notes: svn path=/head/; revision=96326
* Only compile with strtofflags.c from libc if bootstrapping.Ruslan Ermilov2001-09-241-4/+6
| | | | Notes: svn path=/head/; revision=83890
* Fix the bootstrapping aid from revision 1.9.Ruslan Ermilov2001-09-171-1/+1
| | | | | | | WORLD was renamed to BOOTSTRAPPING. Notes: svn path=/head/; revision=83572
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* can not -> cannotSheldon Hearn2001-08-081-1/+1
| | | | Notes: svn path=/head/; revision=81298
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-4/+5
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Remove whitespace at EOL.Dima Dorfman2001-07-151-4/+4
| | | | Notes: svn path=/head/; revision=79755
* Mark a static function as __printflike()Kris Kennaway2001-07-051-1/+1
| | | | | | | MFC After: 1 week Notes: svn path=/head/; revision=79291
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74532