CVS log for src/usr.sbin/mtree/extern.h
Up to [cvs.NetBSD.org] / src / usr.sbin / mtree
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Dec 5 17:17:43 2024 UTC (4 months, 2 weeks ago) by christos
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +8 -1
lines
PR/58875: Jose Luis Duran: Produce consistent checksums in verification
by scanning directories in the same order as usual. While here, fix some
incorrect types.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Mar 18 20:02:18 2021 UTC (4 years, 1 month ago) by cheusov
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
mtree: use POSIX type uint32_t instead of u_int32_t
Revision 1.32.8.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:10 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.32.8.2: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.8.2: +3 -3
lines
Rebase to HEAD as of a few days ago.
Revision 1.38.6.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:59:56 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +3 -3
lines
Rebase.
Revision 1.32.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:43:07 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.32.2.2: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.2.2: +6 -3
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Apr 24 17:22:41 2014 UTC (11 years ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
is-mlppp-base,
is-mlppp,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3
lines
Pass a file pointer to write data instead of writing to stdout.
No functional change.
Revision 1.32.8.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:46 2013 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.32.8.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.8.1: +12 -2
lines
resync with head
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Feb 3 19:15:17 2013 UTC (12 years, 2 months ago) by christos
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
agc-symver-base,
agc-symver
Branch point for: tls-earlyentropy
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -1
lines
add the ability to only output paths included in a spec file when creating
from a directory (-c)
Revision 1.32.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:43 2013 UTC (12 years, 3 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.32.2.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.1: +9 -2
lines
sync with head
Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Dec 20 16:43:16 2012 UTC (12 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +9 -2
lines
Implement the "flavor" output discussed in tech-userlevel@, by Brooks Davis
Revision 1.32.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:03:02 2012 UTC (12 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -3
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:40 2012 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -3
lines
sync with head
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Oct 5 01:26:56 2012 UTC (12 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base7,
yamt-pagecache-base6
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2
lines
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)
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Oct 5 01:13:50 2012 UTC (12 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2
lines
add -j flag to indent directory blocks (from brooks)
Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Oct 5 01:05:14 2012 UTC (12 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2
lines
add -q flag to silence warnings about symlinks to existing dirs (from OpenBSD
via brooks)
Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Oct 5 01:01:07 2012 UTC (12 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2
lines
add -n flag to disable comments (brook)
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Aug 29 20:37:43 2011 UTC (13 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: yamt-pagecache,
tls-maxphys
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -3
lines
Use __dead and __printflike
Revision 1.30.20.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:20:31 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +2 -2
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Apr 8 19:03:13 2009 UTC (16 years ago) by apb
Branches: MAIN
CVS tags: matt-premerge-20091211,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jym-xensuspend-base,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2
lines
The recent addition of sorting to "mtree -C" broke some third party
scripts. Now make sorting optional, controled by the "-S" flag.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Dec 14 20:09:36 2006 UTC (18 years, 4 months ago) by he
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
mjf-devfs2-base,
mjf-devfs2,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: jym-xensuspend
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -3
lines
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
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Jul 22 16:51:45 2004 UTC (20 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2
lines
Implement -M to "merge" entries, even with different types.
This can be used in /etc/security to allow special.local to override
types of entries in special (e.g, replacing a dir with a link).
Rename Wflag to mtree_Wflag, to be more "external namespace" friendly.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Oct 27 00:12:44 2003 UTC (21 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3
lines
Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:25:35 2003 UTC (21 years, 8 months ago) by agc
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -6
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Dec 23 04:40:19 2002 UTC (22 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -3
lines
Add -C, which dumps the specification with the full path name first,
and then all the other fields. (I.e, like -D except with the name
first instead of last).
Consistenly strsvis(3) encode path names (even for -C and -D).
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Oct 8 00:34:08 2002 UTC (22 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -3
lines
Remove convoluted code to work around missing lch{flags,mod,own}();
instead, rely upon libnbcompat to provide a workaround (which returns
an error if the target is a symlink).
Should fix another MacOS X build issue due to missing lchown(2).
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Oct 6 01:36:09 2002 UTC (22 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -1
lines
- Check HAVE_LCHFLAGS for lchflags(2) support, rather than assuming
that HAVE_STRUCT_STAT_ST_FLAGS implies this.
- Set HAVE_LCHFLAGS for native builds
- Clean up {CLEAR,SET,CHANGE}FLAGS macros, and only provide if
HAVE_STRUCT_STAT_ST_FLAGS is set.
(Fixes compilation as a tool on MacOS X, noted by Allen Briggs.)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Feb 8 18:15:12 2002 UTC (23 years, 2 months ago) by tv
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -1
lines
Funtion appropriately in the absence of a lchmod call on the host.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Jan 31 22:44:05 2002 UTC (23 years, 2 months ago) by tv
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -12
lines
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Jan 29 10:20:38 2002 UTC (23 years, 3 months ago) by tv
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -1
lines
Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Jan 29 00:07:27 2002 UTC (23 years, 3 months ago) by tv
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +28 -1
lines
Add hooks to make mtree compilable from src/tools.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Nov 7 08:01:52 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +8 -4
lines
User interface changes from (or inspired by) FreeBSD:
- Add -L to walk the tree `logically', by following symbolic links in
the heirarchy.
- Add -P to walk the tree `physically'. This is the current behaviour,
and the default.
- Add "-X excludes-file" to give mtree the ability to exclude files and
directories from its traversal. excludes-file contains fnmatch(3)
patterns to exclude from the walk.
- Add "md5digest" synonym for "md5".
- Add "rmd160" keyword for RMD-160 message digest, and "rmd160digest" synonym.
- Add "sha1" keyword for SHA-1 message digest, and "sha1digest" synonym.
- Don't try to compare() other attributes if the type doesn't match;
it's nothing but trouble, and no use anyway.
- In -c, only emit "/set" records if something has changed since the
previous one.
User interface changes by me:
- Check a device's parameters before checking uid/gid/mode.
- If updating (-u), modify the following to match the specification:
- Device type (retaining existing ownership).
- Symlink target.
Fixes from (or inspired by) FreeBSD:
- Use p->ftslevel instead of own code to keep track of the level ourself.
The previous code got majorly confused if fts(3) couldn't descend
into a subdir, resulting in leaf nodes getting attached to the wrong
directory.
XXX: This new method is much much more robust, even though it's not 100%
perfect; it might result in a couple of following entries in the spec
to be incorrectly tagged as missing.
- Pass a useful pathname to rlink(), so that logical (-L) traversal
doesn't confuse symlink checking.
- Consistently use MAXPATHLEN+1 sized buffers for pathnames, so that
there's room for the NUL.
- Use mtree_err() and strerror(p->fts_errno) to report errors during
the fts(3) walk.
Fixes by me:
- Remove now-unused `const char *name' argument from compare().
- Change crc_total from an int to a u_int32_t, to match usr.bin/cksum/crc.c.
- Remove trailing whitespace.
- Remove unnecessary (void) casts on functions.
- Reorder entries in the getopt() switch.
- Replace strtoq() with strtoll(), and use strtoul() appropriately.
- Renumber F_ flags to be in alphabetical order.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Nov 3 12:51:40 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2
lines
- move "Wflag" global from mtree.c to spec.c, and reinstate the functionality
of tv's previous code, which skips uname or gname parsing if -W is enabled.
- rename "lineno" to "mtree_lineno", to reduce possibility of name
clashes in code that yanks in spec.c & misc.c (unlikely, but you never know)
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Oct 25 14:47:39 2001 UTC (23 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -1
lines
Add -W: don't attempt to change the perms/time/flags on existing entries, nor
set them when creating new directories. (AKA the ``don't whack'' option).
Concept suggested by Todd Vierling.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Oct 25 03:00:14 2001 UTC (23 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -2
lines
- add lineno field to NODE
- move inotype() prototype into mtree.h from extern.h
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Oct 22 07:07:46 2001 UTC (23 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -3
lines
- enforce the top-most entry must be "." and must be a directory; avoids
various potential problems when intermixing full and relative paths
- changes to make it much easier to use spec() - the specfile parser - in
other programs (via .PATHing spec.c and misc.c):
- move excludetags, includetags and keys from mtree.c to misc.c
- implement mtree_err() using vwarnx() instead of assuming name is
"mtree"
- move inotype() and nodetype() from compare.c to misc.c
- add nodetoinode(), to convert from an mtree F_* type to a
mode_t S_IF* type
- clean up #include use; don't assume "mtree.h" pulls in some
standard includes
- change spec() to take a FILE * arg (where the specfile is read from)
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Oct 5 01:03:24 2001 UTC (23 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -3
lines
cleanup tags support;
- create a typedef struct slist_t to hold stuff in (avoid stringlist(3)
because it's less portable)
- move the tag manipulate stuff into misc.c
- add matchtags(), which returns 0 if the node is explicitly excluded,
or not included if an include list is given; or 1 otherwise
- in -D, change tags support from files-only to all-non-directories
(xxx; still considering implementing tags support for -c and !-D)
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Oct 4 04:51:27 2001 UTC (23 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +8 -1
lines
features:
- add a new keyword - "tags" - which is a comma separated list of tags
associated with that file.
- add "-E tags"; exclude files in -D output with matching tags
- add "-I tags"; only include files in -D output with matching tags
(default is to list all)
fixes:
- move all extern variable references from individual files into extern.h
- `quote' some more user-specified strings in error messages
- man page: list an options arguments in the description, and sort xrefs.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Oct 1 02:30:40 2001 UTC (23 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -1
lines
- implement -D - dump the specfile out in a manner that's parseable
by various tools
- implement -R key - remove the given key(s) from the list of keys to print
(now it's possible with "-k type -R type" to remove all keys :)
- rename ftype() to nodetype(), and make it public
- use pwcache(3) functions instead of get{gr,pw}{nam,uid}(3)
- add dump_nodes(), which provides the guts for -D.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jul 18 04:51:54 2001 UTC (23 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -5
lines
- add parsetype() (a la parsekey()) to parse the "type=xxx" arg. this improves
the error detection for invalid types, as well as shrinking binary size
- implement inotype() using ftype(), rather than duplicating the switch
- change "char *" arguments to "const char *"
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Mar 9 03:09:45 2001 UTC (24 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +10 -10
lines
ANSIfy, KNF, in preperation for more work.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Feb 20 19:45:51 2001 UTC (24 years, 2 months ago) by hubertf
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -5
lines
Remove all the "#ifdef __APPLE__" code, to make this actually
build again on Darwin. The code in question is outdated.
OK'd by Wilfredo Sanchez wsanchez@MIT.EDU.
Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 19 17:05:40 2000 UTC (24 years, 6 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +3 -2
lines
Pull up revision 1.8 (requested by he):
Format string cleanup.
Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Tue Oct 17 19:50:26 2000 UTC (24 years, 6 months ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +3 -2
lines
Pullup usr.sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Oct 11 20:23:54 2000 UTC (24 years, 6 months ago) by is
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -2
lines
More format string cleanups by sommerfeld.
Revision 1.5.6.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:37:54 1999 UTC (25 years, 4 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +1 -1
lines
Pull up to last week's -current.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Dec 7 18:42:06 1999 UTC (25 years, 4 months ago) by wennmach
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
netbsd-1-5-base,
netbsd-1-5-ALPHA2,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -3
lines
code.c is no longer used, we use strsvis instead. Removed prototypes
from extern.h
Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 20 16:58:45 1999 UTC (25 years, 5 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH002
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -1
lines
Pull up revision 1.6 (requested by wennmach and joda):
Make mtree able to properly encode file names with `funny' albeit
legal characters (`#', ` ', binary characters), fixing PR#5006 and
PR#7663.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Nov 9 10:16:55 1999 UTC (25 years, 5 months ago) by drochner
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -1
lines
prototype encode()/decode()
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Oct 10 07:50:28 1998 UTC (26 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH001,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: wrstuden-devbsize,
netbsd-1-4
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -1
lines
add support for 4.4BSD file flags. we take a `flags=xxx' parameter,
using the same style of naming as chflags, ls & xinstall use, plus an
additional `none' to turn off a default setting.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Oct 8 02:04:56 1998 UTC (26 years, 6 months ago) by wsanchez
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +9 -3
lines
Use u_int32_t rather than Sys-V u_long.
Rename err() to mtree_err(), to avoid conflict with libc.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Mar 7 21:12:07 1995 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3,
netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2,
netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -0
lines
add NetBSD id's
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Mar 7 15:29:59 1995 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -4
lines
clean up import, fix a few bugs, etc.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Mar 7 14:44:05 1995 UTC (30 years, 1 month ago) by cgd
Branches: CSRG
CVS tags: lite-2,
lite-1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -4
lines
from 4.4-Lite
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:08 1993 UTC (31 years, 5 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
latest mtree from uunet. doesn't compile, but that'll be fixed soon.
(want to have 'pseudo-virgin' sources, for when fixed fnmatch stuff
is released...)
CVSweb <webmaster@jp.NetBSD.org>