joerg
a1de9c2dbb
Use __dead and __printflike
2011-08-29 20:37:43 +00:00
uebayasi
dbb2d01c6b
Suppress a superfluous whitespace after "time=..." in the output.
2011-02-14 16:27:58 +00:00
wiz
0e068e9935
Fix date.
2010-01-20 14:00:48 +00:00
uebayasi
b833b11a50
Document -t (modify mtime). Bump date.
2010-01-20 13:50:27 +00:00
apb
8f2b54e18a
Fix errors in previous: "optional" and "ignore" keywords also need the
...
appendfield treatment.
2009-09-22 04:38:21 +00:00
apb
4f2b672958
Do not print a trailing space on each line with "mtree -C".
2009-09-19 21:41:43 +00:00
apb
4133fb0075
Fix the "mtree -M" problem reported in PR 42031 by Geoff Wing.
...
The cause of the problem was that part of the code assumed that
nodecmp() on two nodes with the same name would return 0, but in
fact nodecmp() would return -1 or +1 if one of the nodes was a
directory and the other was not. The fix is to separate the notion
of whether or not a duplicate name was found from the notion of
where the new node should appear in the list.
2009-09-19 20:42:06 +00:00
lukem
d877c4c3c0
Enable WARNS=4 by default, except for:
...
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
apb
6e9108295a
When an mtree spec file omits a parent directory, "missing directory in
...
specification", instead of "no such file or directory".
2009-04-11 14:32:51 +00:00
apb
02a79f3336
* Rewrite intro to mention all three things mtree can do (check directory
...
tree against spec; create spec; modify spec).
* Consistently use "options" to refer to command line options. "flags"
is used to refer to file flags.
* Some other clarifications and changes for consistency.
2009-04-09 09:53:37 +00:00
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