summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree
Commit message (Collapse)AuthorAgeFilesLines
...
* Added missing DPADD's. Removed unrequired SRCS's.joe2000-01-011-0/+1
| | | | Obtained from: bde
* Moved flags_to_string and string_to_flags into libutil. It's used injoe1999-12-301-2/+3
| | | | many places nowadays.
* Added support for file flags, mostly merged from the NetBSD version.joe1999-12-099-10/+93
| | | | | | | | The way is now open to schg and sappnd key files and directories in our tree. There are recommendations in bin/15229. PR: bin/15229 Reviewed by: imp, brian
* -Wall fixes.billf1999-09-273-5/+8
| | | | Submitted by: nrahlstr
* $Id$ -> $FreeBSD$peter1999-08-288-8/+8
|
* When bootstrapping mtree, don't depend on there being a libmd at all.wollman1999-03-011-5/+3
|
* mtree is a "bootstrap tool", don't use the fancy new world-breaking featuresjkh1999-02-271-2/+6
| | | | if we're building it as part of the bootstrap toolset.
* Add support for SHA-1 and RIPEMD160, now that libmd includes them. Makewollman1999-02-267-15/+139
| | | | | all of the hashes (including MD5) conditionalized in case we want to turn one of them off later.
* Move to a uniform '\ooo' (VIS_OCTAL) encoding for special characters.jkoshy1999-01-181-2/+2
| | | | | | | | | | | The previous commit broke mtree(8) when file names using certain 8-bit characters ended up being encoded with '/', '*', and other shell metacharacters. PR: bin/9538 Submitted by: "Eugene M. Kim" <astralblue@usa.net> Reviewed by: jkoshy Bug-missed-last-time-by: jkoshy
* Teach mtree(8) to handle whitespace in filenames. Uses strvis(3).jkoshy1999-01-122-5/+19
| | | | | | PR: bin/3246 Submitted by: Eugene M. Kim <astralblue@usa.net> Reviewed by: jkoshy, wollman
* Free memory from getmode.imp1998-12-161-1/+2
| | | | Obtained from: OpenBSD
* Fixed printf format errors.bde1998-08-022-6/+6
|
* There is no need to make nochange imply ignore as well.peter1998-06-102-6/+5
| | | | Suggested by: bde
* Use correct size for readlink buffer. This is the size of theimp1998-06-091-2/+2
| | | | | | buffer -1 since readlink adds its own NUL to the end. Inspired by: Similar changes in OpenBSD
* Create a new flag, "nochange", which will specify that a directory ispeter1998-06-056-14/+21
| | | | | | | | | | | | to be created if it's missing, otherwise completely ignore it's modes and owners. Primary intended targets: /usr/src and /usr/obj. Adjust the 'not created: File exists' message to mention that it's a directory that's the problem, otherwise it doesn't make sense. I had created chown-style -L and -P flag to control logical/physical mode (ie: whether symlinks were followed), but the nochange flag is enough to get the blasted thing out of my hair so I took them back out.
* Use err(3) instead of local redefinition.charnier1997-10-018-114/+125
|
* Change FTS_PHYSICAL (not follow symlinks but return them)ache1997-05-151-1/+1
| | | | | | | | | | | | | | | to FTS_LOGICAL (follow symlinks and return their targets) Because 1) In the real system there is a lot of symlinks nowdays over /var, /spool, etc. Mtree can't do anything for them, i.e. change permissions/owner. I.e. if you have /var/mail -> /somewhere it will never be changed to group "mail" 775 like -current does now, symlink totally confuses mtree. 2) Mtree can't deal with symlinks properly in any case (they are created separately in other places now), so we lost no functionality by making them invisible for mtree.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-1/+1
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Sort cross references.wosch1997-01-201-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* ts_sec -> tv_secnate1996-09-203-8/+8
| | | | | | ts_nsec -> tv_nsec Pointed out by: bde
* Correct a bunch of man page cross references and generallympp1996-02-111-3/+3
| | | | | | try and silence "manck". ncurses, rpc, and some of the gnu stuff are still a big mess, however.
* Fix a bunch of spelling errors in a bunch of man pages.mpp1996-01-301-2/+2
|
* st_size in struct stat has type off_t (long long) and not unsigned longtorstenb1995-10-061-1/+1
| | | | change strtoul() to strtoq()
* Use p->fts_level instead of unsuccessfully trying to keep track of thebde1995-07-241-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | level ourself. We failed for unreadable directories. E.g., `mtree -d -f /etc/mtree/BSD.usr.dist -p /usr' run by `nobody' was confused after it couldn't descend into /usr/games/hide. It looked for /usr/include and subsequent directories in /usr/games. Don't search for `extra' files when the spec depth is less than the fts level. The spec depth isn't incremented for leaf nodes because that would give a NULL level pointer and make it inconvenient to go back to the parent level. Leaf nodes are built for directories that are empty in the spec. Since they are empty in the spec, all files in them are extra. The search looked for files one spec level too high, so for `mtree -d -f /etc/mtree/BSD.usr.dist -p /usr', obj/sbin matched ./sbin and wasn't considered extra, so it was descended into and lots of bogus extra things in it were found. This was harmful for `mtree -U' (as reported in pr623) and worse for `mtree -r'. Use rmdir(), not unlink(), to remove `extra' directories. unlink() succeeds for root but unlinking directories normally damages the file system. Report `fts_errno' instead of `errno' when the former applies.
* Report `fts_errno' instead of `errno' when the former applies.bde1995-07-241-2/+2
|
* Fix to match new MD5 api, faster.phk1995-07-122-7/+4
|
* Remove trailing whitespace.rgrimes1995-05-304-8/+8
|
* mtree * MD5 = better securitywollman1995-02-107-14/+74
| | | | Idea from: Dr. John T. Wroclawski
* Add -U option which does the same things as -u except exits with 0rgrimes1994-10-092-6/+24
| | | | instead of 2 on MISMATCH.
* Fixed bug caused by missing set of paranthesis when checking the modificationdg1994-09-241-3/+3
| | | | | | | time. This caused differences in the nanosecond portion of the time to screwup the logic and made mtree think it should compare the modtime even though "time" wasn't specified. The end result is that mtree couldn't deal with procfs because procfs sets the mtime with high accuracy via microtime().
* My optimization to eliminate /set records was a little too aggressive, itrgrimes1994-09-191-2/+5
| | | | optimized away the first one :-(.
* 1. Remove commented out CFLAGS+=-DDEBUG from Makefilergrimes1994-09-188-113/+174
| | | | | | | | | | | | 2. Clean up code so it compiles -Wall (except for sccsid's and copyright). This included fixing several printf formats that where not correct, and changing the data types of a few things. 3. Implement new option -i that produces indented mtree output files. 4. Implement new option -n that turns off directory comments. 5. Only emit /set records if something has changed since the last one.
* fixed typosadam1994-09-031-2/+2
| | | | | Reviewed by: Submitted by:
* Get rid of update. Make man page installation work with our schemewollman1994-08-051-0/+1
| | | | (and rename a few in the process).
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-2610-0/+1703
OpenPOWER on IntegriCloud