Commit Graph

245 Commits

Author SHA1 Message Date
christos 6a0fd2f03e add the ability to only output paths included in a spec file when creating
from a directory (-c)
2013-02-03 19:15:16 +00:00
wiz 0d9af955c5 Typo fix. 2012-12-20 20:31:01 +00:00
wiz 4612bed094 Add missing letter and use x.y versions for Fx/Nx. 2012-12-20 20:17:26 +00:00
christos 357b749529 move flavor to misc.c because pax needs it. 2012-12-20 19:09:25 +00:00
mlelstv 821ebbb223 joerg@: just use unsigned int please 2012-12-20 18:58:37 +00:00
christos 3afc22d858 Implement the "flavor" output discussed in tech-userlevel@, by Brooks Davis 2012-12-20 16:43:16 +00:00
christos d80c5e8655 make us compatible with FreeBSD (for -n) (Brooks Davies) 2012-12-15 01:24:40 +00:00
christos 7f80b3db6a - No mention of -t in the usage message or the manpage SYNOPSIS (Brooks Davis) 2012-12-12 15:52:10 +00:00
christos 40e1da4105 - No "j" in the getopt string. (Brooks Davis) 2012-12-12 15:51:41 +00:00
christos d89c5e4d96 - two entries for rmd160digest in misc.c (Brooks Davis) 2012-12-12 15:51:04 +00:00
christos cbc85fc672 -n is incorrectly supressing the ".." lines. (Brooks Davis) 2012-12-12 15:50:35 +00:00
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