#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
290623 |
|
09-Nov-2015 |
bdrewery |
Rename usr.sbin/mtree to usr.sbin/fmtree since it is not what /usr/sbin/mtree actually is (which is usr.sbin/nmtree).
This has tricked me numerous times.
|
#
229403 |
|
03-Jan-2012 |
ed |
Replace index() and rindex() calls with strchr() and strrchr().
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.
|
#
187940 |
|
31-Jan-2009 |
kientzle |
Write timestamps with exactly 9 digits after the period. 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.
|
#
187910 |
|
30-Jan-2009 |
kientzle |
Accept integer times. Previously, the field "time=1233294539" would be rejected as invalid.
|
#
160083 |
|
03-Jul-2006 |
maxim |
o Add an 'optional' keyword, which allows files to be in the 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
|
#
144295 |
|
29-Mar-2005 |
tobez |
Adds sha256 support. While it is a good idea to also add sha384 and 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
|
#
122896 |
|
19-Nov-2003 |
phk |
Off by one error in malloc.
Approved by: re@
|
#
122135 |
|
05-Nov-2003 |
phk |
Rename spec() and verify() functions to have mtree_ prefix and take explicit file descriptor instead of assuming stdin.
|
#
121734 |
|
30-Oct-2003 |
phk |
Use vis(3) to encode/decode the target for symlinks.
Make vis(3) decode errors fatal for both symlink targets and fienames.
|
#
121300 |
|
21-Oct-2003 |
phk |
Remove clause 3 in the copyrights (according to permission in src/COPYRIGHT) Remove trailing whitespace.
|
#
121299 |
|
21-Oct-2003 |
phk |
Remove "register" keywords. Use newspeak functions definitions.
|
#
114601 |
|
03-May-2003 |
obrien |
Use __FBSDID over rcsid[]. Protect copyright[] where needed.
|
#
99800 |
|
11-Jul-2002 |
alfred |
de-__P()
|
#
61749 |
|
17-Jun-2000 |
joe |
Switch over to using the new fflagstostr and strtofflags library calls.
|
#
56692 |
|
27-Jan-2000 |
joe |
Historically file flags (schg, uschg, etc) have been converted from string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags.
Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc.
There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags.
The manual page could probably be improved upon ;)
|
#
54375 |
|
09-Dec-1999 |
joe |
Added support for file flags, mostly merged from the NetBSD version. 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
|
#
50479 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
44303 |
|
26-Feb-1999 |
wollman |
Add support for SHA-1 and RIPEMD160, now that libmd includes them. Make all of the hashes (including MD5) conditionalized in case we want to turn one of them off later.
|
#
42561 |
|
12-Jan-1999 |
jkoshy |
Teach mtree(8) to handle whitespace in filenames. Uses strvis(3).
PR: bin/3246 Submitted by: Eugene M. Kim <astralblue@usa.net> Reviewed by: jkoshy, wollman
|
#
41848 |
|
16-Dec-1998 |
imp |
Free memory from getmode.
Obtained from: OpenBSD
|
#
30027 |
|
01-Oct-1997 |
charnier |
Use err(3) instead of local redefinition.
|
#
18404 |
|
20-Sep-1996 |
nate |
ts_sec -> tv_sec ts_nsec -> tv_nsec
Pointed out by: bde
|
#
11282 |
|
06-Oct-1995 |
torstenb |
st_size in struct stat has type off_t (long long) and not unsigned long change strtoul() to strtoq()
|
#
8857 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
6286 |
|
10-Feb-1995 |
wollman |
mtree * MD5 = better security
Idea from: Dr. John T. Wroclawski
|
#
2860 |
|
18-Sep-1994 |
rgrimes |
1. Remove commented out CFLAGS+=-DDEBUG from Makefile
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.
|
#
1554 |
|
26-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1553, which included commits to RCS files with non-trunk default branches.
|
#
1553 |
|
26-May-1994 |
rgrimes |
BSD 4.4 Lite usr.sbin Sources
|