wiz
d1b96e557a
Sync usage with man page.
2009-04-08 19:43:05 +00:00
wiz
7b2130ba39
Sort options and option descriptions.
...
Remove an incomplete sentence ("It will") -- probably pasto.
Give the tagged lists more space for the first column.
Remove unnecessary Bk/Ek pairs.
2009-04-08 19:39:23 +00:00
apb
ef658dd50e
The recent addition of sorting to "mtree -C" broke some third party
...
scripts. Now make sorting optional, controled by the "-S" flag.
2009-04-08 19:03:13 +00:00
apb
62b6b42c6f
fix another missing "prev" link
2009-04-07 18:06:41 +00:00
apb
dc1b0e5339
Fix broken "prev" pointer in one case.
2009-04-05 15:47:03 +00:00
dogcow
f0f15c8b0d
Watch one's "p"s and "q"s and fix cast aspersions on alpha ("warning: field
...
precision should have type 'int', but argument 2 has type 'long int'")
2009-04-05 12:15:07 +00:00
apb
c5c8c1dcb2
Tags are internally stored with leading and trailing commas, for ease
...
of using strstr(3) to check them against inclusion or exclusion lists.
Don't output the leading or trailing commas.
2009-04-04 21:49:49 +00:00
apb
5e464841ab
Make "mtree -C" sort its output.
...
As the input is read from a specfile into a tree of linked lists,
keep each linked list sorted. The sort order is the same as that
already used by "mtree -c": directories sort after non-directories, but
otherwise names are sorted in the order used by strcmp().
2009-04-03 21:18:59 +00:00
joerg
284c3410b6
Don't use .Xo/.Xc. Replace use of .Sm off / .Sm on with .Ns.
2009-03-11 18:10:05 +00:00
wiz
7eff20f8db
New sentence, new line.
2009-02-02 03:27:37 +00:00
hubertf
47da095c98
-c: make it clear where the file hierarchy starts
...
-I, -E: they also work with -C, not just with -D
2009-02-01 22:37:22 +00:00
hubertf
dde9e1886b
When {MD5,RMD160,SHA1,SHA256_,SHA384_,SHA512_}File fail, use errno
...
to print what's actually wrong
2009-02-01 22:36:24 +00:00
lukem
c5eb4ab601
fix -Wsign-compare issues
2009-01-18 11:56:51 +00:00
christos
ab515b681b
fix dev_t formats.
2008-12-28 19:36:30 +00:00
christos
6be0c3f194
fix time_t and dev_t formats
2008-12-28 19:35:12 +00:00
dbj
66394bcdd9
ensure mtree_err gets a format string
2008-11-04 23:22:48 +00:00
lukem
9c1945664c
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
martin
cd22f25e6f
Move TNF licenses to 2 clause form
2008-05-02 18:11:04 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
lukem
bcf893f432
use __RCSID()
2007-12-12 22:55:42 +00:00
christos
22ec0fdf7e
warns=4
2007-12-12 21:56:38 +00:00
christos
1f093d4259
PR/37482: Malcolm Herbert: mtree does not check for getlogin() returning null
...
in spec create
2007-12-05 16:55:29 +00:00
rillig
f8d3de218d
Renamed dsort to dcmp, since it doesn't sort, it only compares.
2007-11-19 08:58:54 +00:00
rillig
50e4f54b4c
Even on non-BSD systems, the "-R all" option should disable printing of
...
the "time" attribute. Noticed by Malcolm Herbert on tech-pkg.
2007-11-19 08:42:24 +00:00
christos
50295fe38d
cast to long explicitly for the compat build
2007-10-18 02:28:22 +00:00
elad
3044852cc5
The hashing routines (MD5File() and co.) can do dynamic allocation, so
...
take advantage of that instead of an ugly hard-coded MAXHASHLEN limit
that needs updating.
I think this was suggested by cube@ years ago.
2007-02-04 08:03:18 +00:00
perry
981d0d04cb
Fix a typo in a boolean test, which used & instead of &&.
2007-01-20 01:13:13 +00:00
bouyer
3697550e70
Don't depend on lubutil if we're building host tools. Fix tools build on
...
non-NetBSD hosts.
2006-12-16 12:59:16 +00:00
he
f6b748e0c7
Fix mtree to release the returned strings from flags_to_string()
...
following the move of it from bin/ls to libutil and the change of
it to return malloc()ed memory.
2006-12-14 20:21:47 +00:00
he
0a97c3f688
Complete the move of string_to_flags() and flags_to_string() from the
...
bin/ls sources to libutil:
o Bump libutil minor version number
o Fix uses to include <util.h> to pick up the function definitions
o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-12-14 20:09:35 +00:00
he
29ff6ed16a
The "#ifdef UNUSED_BLOCK" in stat_flags.c wasn't so unused after
...
all -- it was used by the mtree source. So, instead do an "#ifdef
MTREE", and define that one when building mtree.
2006-12-14 17:54:19 +00:00
christos
11c53ad61c
kill crypto/rmd160.h and crypto/sha2.h, and instead make symlinks to
...
/usr/include from /usr/include/sys. This makes all the one way hash
header handling identical.
2006-10-30 20:22:53 +00:00
christos
a3522b311f
c99 initializers
2006-10-16 00:11:57 +00:00
christos
4ce31f7c8c
PR/34818: rad at twig dot com: Recognize solaris door files.
2006-10-14 21:14:02 +00:00
martin
a073765d4a
Apply patch from Peter Bex to fix PR bin/31922.
2006-10-08 18:09:47 +00:00
elad
d71fc8765e
PR/28786: Jukka Salmi: mtree bug (in verify.c)
...
Apply patch from Peter Bex, thanks!
2006-10-07 15:35:51 +00:00
pavel
b1328dedeb
describe how to suppress printing of "type" keyword when -k is used.
...
bump date.
2006-09-12 20:22:49 +00:00
wiz
7e78208091
i.e. without a space. PR 33328 by Igor Sobrado.
2006-04-22 19:35:35 +00:00
dsl
c0b0ba1f18
If parameter don't have values, then 'continue' after setting the flag bit.
...
Fixes coverty CID 776 and removes the need for a 'val = NULL' added to
appease gcc's undefined variable tests.
This parsing code sucks though, it doesn't correctly check for the '='
between a parameter and its value, whitespace can be used instead.
2006-04-12 19:49:59 +00:00
elad
7084f7a24b
SHA2 support has been pulled up to NetBSD 3.0, update the history part.
2005-11-10 19:41:59 +00:00
christos
c05266af8a
fix setmode error handling.
2005-10-01 20:23:54 +00:00
tron
fe7c56c577
The list of keywords must be sorted because it is search with bsearch(3).
...
Correcting this makes mtree(8) work again under Solaris.
2005-09-29 14:29:03 +00:00
elad
a375b7cdb7
Use crypto/rmd160.h.
2005-09-24 22:40:32 +00:00
elad
d05d5cada8
Use MAXHASHLEN here too.
2005-09-02 17:12:38 +00:00
elad
aae00d5a54
Add SHA2 support in mtree.
2005-08-24 20:55:41 +00:00
elad
d0b9773c8f
Reference cksum(1) only.
2005-08-24 20:49:51 +00:00
lukem
c8e07a4ef7
appease gcc -Wuninitialized
2005-06-02 05:58:24 +00:00
dsl
6b5922eb36
WARNS=3 seems to work for me
2005-04-09 13:13:32 +00:00
perry
d777c795fa
ANSIfy function declaration, remove register declarations, and some
...
minor KNFing.
2005-02-06 04:52:53 +00:00
lukem
24e1167471
In replacenode(), don't strunvis() a NULL pointer. (Fixes bug in previous.)
2004-12-01 23:27:36 +00:00