Commit Graph

234 Commits

Author SHA1 Message Date
christos 0b112faa75 disable encoding of globbing characters for now. 2012-10-07 18:40:49 +00:00
wiz c4b7eb510b Sync usage with man page. 2012-10-05 09:18:08 +00:00
wiz 324794350b Fix typos; remove trailing whitespace; add missing options to SYNOPSIS. 2012-10-05 09:18:02 +00:00
wiz 519eb1daa9 Fix typo in comment. 2012-10-05 09:17:29 +00:00
christos b73d92b069 Implement FreeBSD's "nochange" keyworld which causes the existance of a
filesystem object to be checked but none of its attiributes.(brooks)
2012-10-05 01:31:05 +00:00
christos 23fe062937 Implement FreeBSD's "nochange" keyworld which causes the existance of a
filesystem object to be checked but none of its attributes. (brooks)
2012-10-05 01:30:36 +00:00
christos 1529f30b49 Encode literal global characters in files. Otherwise the results of
updating a directory using the resulting spec will be surprising.

See http://svnweb.freebsd.org/base/head/usr.sbin/mtree/test/test00.sh
for test cases.
(brooks)
2012-10-05 01:28:20 +00:00
christos 14b8803532 NetBSD needs <time.h> 2012-10-05 01:27:29 +00:00
christos 9e84d4e8c2 Implement FreeBSD's -f spec1 -f spec2 spec comparision function. This
is more useful than -C and diff because it highlights the keys that have
changed value so for example, you can see that the size of a file has
not changed but the contents have. (brooks)
2012-10-05 01:26:56 +00:00
christos d07df9451a Allow uid and uname or gid and gname to both be printed while
preserving the behavior of falling back to [ug]id when the name is not
resolvable. (brooks)
2012-10-05 01:21:44 +00:00
christos 09b2a8d434 clarify seconds.09nanoseconds format (brooks) 2012-10-05 01:19:54 +00:00
christos c80bcab895 add -j flag to indent directory blocks (from brooks) 2012-10-05 01:13:50 +00:00
christos 43c54169be add -q flag to silence warnings about symlinks to existing dirs (from OpenBSD
via brooks)
2012-10-05 01:05:14 +00:00
christos 0c2ce7c15d add -n flag to disable comments (brook) 2012-10-05 01:01:07 +00:00
christos 8a1488a16f account for differences in digest names 2012-10-05 00:59:35 +00:00
christos 661bb795fb our fts compare routine is less constified. 2012-10-05 00:58:46 +00:00
christos 3007bc41f2 explicitly include <sys/stat.h> 2012-10-05 00:42:00 +00:00
christos dc074e0229 more const
check if we support SHA384 before using
(brooks)
2012-10-05 00:41:24 +00:00
christos 17d9400e73 remove dup extern (brooks) 2012-10-05 00:40:51 +00:00
wiz 4f36cb9e44 - Sort order of options mentioned in text;
- improve wording;
- remove unneeded macros (fixes mandoc(1) warnings);
- in the `EXAMPLES' section, for `-d', mention the use of `-U'
  besides that of `-u' (as the former is a variant on the latter).

From Bug Hunting.
2012-10-03 19:27:48 +00:00
spz b1a40de246 resource leak (Coverity issues 274383 and 274384) 2012-07-15 09:08:29 +00:00
christos cd4f9f6dc5 PR/41061: Steven Drake: mtree -d complains about extra symlinks 2012-03-25 16:07:04 +00:00
joerg 66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
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