summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/spec.c
Commit message (Collapse)AuthorAgeFilesLines
* Write timestamps with exactly 9 digits after the period.kientzle2009-01-311-0/+2
| | | | | | | | | | 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.
* o Add an 'optional' keyword, which allows files to be in themaxim2006-07-031-0/+3
| | | | | | | | | | 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
* Adds sha256 support. While it is a good idea to also add sha384 andtobez2005-03-291-0/+5
| | | | | | | | | | | | | | 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
* Off by one error in malloc.phk2003-11-191-1/+1
| | | | Approved by: re@
* Rename spec() and verify() functions to have mtree_ prefix and takephk2003-11-051-8/+5
| | | | explicit file descriptor instead of assuming stdin.
* Use vis(3) to encode/decode the target for symlinks.phk2003-10-301-7/+7
| | | | Make vis(3) decode errors fatal for both symlink targets and fienames.
* Remove clause 3 in the copyrights (according to permission in src/COPYRIGHT)phk2003-10-211-5/+1
| | | | Remove trailing whitespace.
* Remove "register" keywords.phk2003-10-211-11/+7
| | | | Use newspeak functions definitions.
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.obrien2003-05-031-4/+4
|
* de-__P()alfred2002-07-111-2/+2
|
* Switch over to using the new fflagstostr and strtofflags library calls.joe2000-06-171-1/+1
|
* Historically file flags (schg, uschg, etc) have been converted fromjoe2000-01-271-1/+1
| | | | | | | | | | | | | | | | | 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 ;)
* Added support for file flags, mostly merged from the NetBSD version.joe1999-12-091-2/+8
| | | | | | | | 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
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add support for SHA-1 and RIPEMD160, now that libmd includes them. Makewollman1999-02-261-1/+13
| | | | | all of the hashes (including MD5) conditionalized in case we want to turn one of them off later.
* Teach mtree(8) to handle whitespace in filenames. Uses strvis(3).jkoshy1999-01-121-2/+7
| | | | | | 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
* Use err(3) instead of local redefinition.charnier1997-10-011-23/+36
|
* ts_sec -> tv_secnate1996-09-201-2/+2
| | | | | | ts_nsec -> tv_nsec Pointed out by: bde
* st_size in struct stat has type off_t (long long) and not unsigned longtorstenb1995-10-061-1/+1
| | | | change strtoul() to strtoq()
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* mtree * MD5 = better securitywollman1995-02-101-0/+6
| | | | Idea from: Dr. John T. Wroclawski
* 1. Remove commented out CFLAGS+=-DDEBUG from Makefilergrimes1994-09-181-4/+4
| | | | | | | | | | | | 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.
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-261-0/+280
OpenPOWER on IntegriCloud