CVS log for src/usr.sbin/mtree/compare.c
Up to [cvs.NetBSD.org] / src / usr.sbin / mtree
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Dec 5 17:17:43 2024 UTC (6 weeks ago) by christos
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -5
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.60: download - view: text, markup, annotated - select for diffs
Sat Apr 3 13:37:18 2021 UTC (3 years, 9 months ago) by simonb
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.59: preferred, colored
Changes since revision 1.59: +20 -11
lines
Deal with the case when a device gets recreated (eg when mtree is called by
MAKEDEV) and the stat buffer contains information about the original device
before checking/setting the owner/group/mode of the new device file.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Mar 18 20:02:18 2021 UTC (3 years, 10 months ago) by cheusov
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3
lines
mtree: use POSIX type uint32_t instead of u_int32_t
Revision 1.52.14.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:10 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.52.14.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.14.1: +97 -49
lines
Rebase to HEAD as of a few days ago.
Revision 1.52.8.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:43:07 2014 UTC (10 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.52.8.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.8.1: +97 -49
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.58: download - view: text, markup, annotated - select for diffs
Thu Nov 21 18:39:50 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
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.57: preferred, colored
Changes since revision 1.57: +92 -45
lines
From Brooks Davis:
When comparing a directory to an mtree file NetBSD mtree has output like
this:
xxx: size (4, 5)
md5digest (0x6de9439834c9147569741d3c9c9fc010, 0xa5d119ab8edcda0ef7f381da8=
f52f92f)
=2E/yyy missing
FreeBSD's historical behavior is this:
xxx changed
size expected 4 found 5
md5digest expected 6de9439834c9147569741d3c9c9fc010 found a5d119ab8edcda0e=
f7f381da8f52f92f
=2E/yyy missing
FreeBSD's mergemaster -U command depends on the latter behavior so
the following patch alters the freebsd9 mode of mtree to output
that format. I don't think programs should rely on this output one way
or another since it's clearly meant for humans, but this seems like the
easiest short term fix.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Oct 17 17:22:59 2013 UTC (11 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -2
lines
Our <sys/param.h> ends up calling header files that define intmax_t. This
should not be the case (but >sys/param.h> is not a standard header so all bets
are off). FreeBSD's does not, so explicitly include <stdint.h> to get it.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Sep 9 23:27:43 2013 UTC (11 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +8 -8
lines
use intmax_t instead of long long. fixes wrong cast for time_t.
Revision 1.52.14.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:03:02 2012 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +29 -26
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.52.8.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:40 2012 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +29 -26
lines
sync with head
Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Oct 5 00:59:35 2012 UTC (12 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
agc-symver-base,
agc-symver
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +26 -26
lines
account for differences in digest names
Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Oct 5 00:42:00 2012 UTC (12 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -2
lines
explicitly include <sys/stat.h>
Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Oct 5 00:41:24 2012 UTC (12 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -2
lines
more const
check if we support SHA384 before using
(brooks)
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Dec 28 19:36:30 2008 UTC (16 years ago) by christos
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-premerge-20091211,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache,
tls-maxphys
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +5 -4
lines
fix dev_t formats.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Feb 4 08:03:18 2007 UTC (17 years, 11 months ago) by elad
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
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +15 -9
lines
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.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Dec 14 20:21:47 2006 UTC (18 years, 1 month ago) by he
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +19 -11
lines
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.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Oct 30 20:22:54 2006 UTC (18 years, 2 months ago) by christos
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
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -4
lines
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.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Sep 24 22:41:26 2005 UTC (19 years, 3 months ago) by elad
Branches: MAIN
CVS tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3
lines
Use crypto/rmd160.h.
Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 12 18:32:08 2005 UTC (19 years, 4 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.1: +3 -4
lines
Apply patch (requested by elad in ticket #755):
Add support for SHA2 in mtree(8).
Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 12 12:26:27 2005 UTC (19 years, 4 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +55 -4
lines
Apply patch (requested by elad in ticket #755):
Add support for SHA2 in mtree(8).
Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Sep 2 17:12:38 2005 UTC (19 years, 4 months ago) by elad
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3
lines
Use MAXHASHLEN here too.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Aug 24 20:55:41 2005 UTC (19 years, 4 months ago) by elad
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +54 -4
lines
Add SHA2 support in mtree.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Jul 22 16:51:45 2004 UTC (20 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3
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.43.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 22 07:30:28 2004 UTC (20 years, 7 months ago) by tron
Branches: netbsd-2-0
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-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
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +15 -9
lines
Pull up revision 1.44 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Jun 20 22:20:18 2004 UTC (20 years, 7 months ago) by jmc
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +15 -9
lines
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:25:35 2003 UTC (21 years, 5 months ago) by agc
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -7
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.42: download - view: text, markup, annotated - select for diffs
Tue Oct 8 00:34:08 2002 UTC (22 years, 3 months ago) by lukem
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -18
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.41: download - view: text, markup, annotated - select for diffs
Sun Oct 6 01:36:09 2002 UTC (22 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +34 -31
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.40: download - view: text, markup, annotated - select for diffs
Fri Feb 8 18:15:12 2002 UTC (22 years, 11 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.39: preferred, colored
Changes since revision 1.39: +8 -2
lines
Funtion appropriately in the absence of a lchmod call on the host.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Feb 4 07:17:14 2002 UTC (22 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +10 -10
lines
- use lch*() instead of ch*() to change permissions, so that links in
the specfile don't confuse things. doesn't affect the default
(physical) operation, and shouldn't affect logical either.
- slightly rework how miss() is implemented so that duplicated code is
reduced and links may optionally have a mode, uname and/or gname.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Jan 31 19:37:15 2002 UTC (22 years, 11 months ago) by tv
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
Protect __RCSID and __COPYRIGHT from being invoked if not defined.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Jan 29 00:07:27 2002 UTC (22 years, 11 months ago) by tv
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +10 -6
lines
Add hooks to make mtree compilable from src/tools.
Revision 1.22.8.1: download - view: text, markup, annotated - select for diffs
Sun Dec 9 17:42:15 2001 UTC (23 years, 1 month ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +20 -3
lines
Pull up revision 1.26 (requested by lukem):
Add an ``-l'' flag which does ``loose'' permission checks.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Nov 10 14:58:20 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +20 -5
lines
provide the ability to remove support for generating or checking various
digests by #define-ing NO_MD5, NO_RMD160, or NO_SHA1. the keywords are
still parsed.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Nov 9 06:55:56 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3
lines
Generally don't need the extra byte in MAXPATHLEN sized buffers, because
pathnames are guaranteed by POSIX to be MAXPATHLEN-1 bytes long.
Kindly pointed out by Warner Losh in private email.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Nov 7 08:01:52 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +139 -93
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.33: download - view: text, markup, annotated - select for diffs
Thu Oct 25 14:47:39 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +10 -2
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.32: download - view: text, markup, annotated - select for diffs
Mon Oct 22 07:07:46 2001 UTC (23 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -43
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.31: download - view: text, markup, annotated - select for diffs
Thu Oct 18 04:45:41 2001 UTC (23 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3
lines
need semicolon between goto label and closing brace
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Oct 18 04:37:56 2001 UTC (23 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -4
lines
make this mostly WARNS=2 safe
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Oct 9 04:50:00 2001 UTC (23 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +19 -2
lines
Add "device" keyword, which allows the device number to be specified,
to be later checked and possibly created. Uses parsing and encoding
routines from mknod(8).
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Oct 4 04:51:27 2001 UTC (23 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -4
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.27: download - view: text, markup, annotated - select for diffs
Mon Oct 1 02:30:40 2001 UTC (23 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -8
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.26: download - view: text, markup, annotated - select for diffs
Sat Sep 22 03:56:29 2001 UTC (23 years, 4 months ago) by perry
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +20 -3
lines
Add a -l flag which does "loose" permissions checks, i.e. a mode 444
matches a check for mode 644 (though obviously not the reverse). This
can be used by the nightly security run, making the output1 more useful
by having it contain fewer spurious permissions violations.
Note that I did not make -l work if you have a sgid/suid/sticky bit
set. I don't know how you could cause security trouble with more
stringent settings and a suid file, but I don't want to find out the
hard way.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Jul 18 04:51:54 2001 UTC (23 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +18 -28
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.24: download - view: text, markup, annotated - select for diffs
Fri Mar 9 03:09:45 2001 UTC (23 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +12 -14
lines
ANSIfy, KNF, in preperation for more work.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jan 5 03:27:27 2001 UTC (24 years ago) by lukem
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
use %ll_ instead of the less standard %q_
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Jul 10 19:59:28 1999 UTC (25 years, 6 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
minoura-xpg4dl-base,
minoura-xpg4dl,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: netbsd-1-5
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -9
lines
fix thinko in mtime stuff.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Jul 6 15:11:14 1999 UTC (25 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +20 -6
lines
portability fixes:
- don't use timespecs in struct stat on non 4.4BSD systems
- don't assume that tv_sec is a time_t
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Feb 11 15:32:23 1999 UTC (25 years, 11 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +85 -24
lines
- add -m and -i to change file flags more usefully.
- fix bugs in fileflags checking
all of the above from dr. lex wennmacher <wennmach@geo.Uni-Koeln.DE>
with some error fixes from egcs via myself.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Dec 19 15:38:45 1998 UTC (26 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +19 -16
lines
Appease gcc-2.8.1, make printf formats more portable.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Dec 6 19:07:53 1998 UTC (26 years, 1 month ago) by jwise
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +21 -2
lines
Add an `md5' keyword to mtree, which takes as an argument the MD5 cryptographic
checksum of the file in question, optionally preceeded by `0x'.
This has been tested, and does work, AFAICT. There is currently no md5 equivalent
of the '-s' flag for use with checksum.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Oct 10 07:50:28 1998 UTC (26 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +24 -2
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.16: download - view: text, markup, annotated - select for diffs
Thu Oct 8 02:04:55 1998 UTC (26 years, 3 months ago) by wsanchez
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -5
lines
Use u_int32_t rather than Sys-V u_long.
Rename err() to mtree_err(), to avoid conflict with libc.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Aug 27 18:03:45 1998 UTC (26 years, 4 months ago) by ross
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -3
lines
Add {} pairs to shut up egcs.
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 24 20:51:42 1997 UTC (27 years, 3 months ago) by mellon
Branches: netbsd-1-3
CVS tags: 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
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +4 -3
lines
Pull rev 1.14 up from trunk
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Oct 24 03:12:06 1997 UTC (27 years, 3 months ago) by enami
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -3
lines
Make this compile again on NetBSD/alpha; cast off_t variable to long long
so that it matches printf format `%qd'.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Oct 17 11:46:30 1997 UTC (27 years, 3 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +7 -5
lines
WARNSify, getopt returns -1 not EOF
Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jul 11 07:05:29 1997 UTC (27 years, 6 months ago) by mikel
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3
lines
fix printf() formats, make explicit comparisons to NULL (gcc -Wall)
Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 10 05:55:41 1996 UTC (28 years, 1 month ago) by mycroft
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +31 -14
lines
From trunk:
Don`t record sizes for things other than regular files.
Add a `-t' option to update time stamps.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Sep 5 09:56:48 1996 UTC (28 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +31 -14
lines
Add a `-t' option to update time stamps.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Feb 1 00:04:52 1996 UTC (28 years, 11 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-BETA
Branch point for: netbsd-1-2
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -6
lines
Rename struct timespec fields to conform to POSIX.1b
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Oct 22 20:12:07 1995 UTC (29 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4
lines
Insert parentheses to get correct precedence when comparing time-stamps
(from Arne Juul; PR#1660).
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Mar 7 21:12:05 1995 UTC (29 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -0
lines
add NetBSD id's
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Mar 7 15:29:49 1995 UTC (29 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +13 -7
lines
clean up import, fix a few bugs, etc.
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Mar 7 14:44:02 1995 UTC (29 years, 10 months ago) by cgd
Branches: WFJ-920714,
CSRG
CVS tags: lite-2,
lite-1
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +131 -80
lines
from 4.4-Lite
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Mar 27 09:09:42 1994 UTC (30 years, 9 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
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2
lines
off_t exp.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Nov 17 11:00:52 1993 UTC (31 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -5
lines
make things a bit more consistent
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:07 1993 UTC (31 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +110 -66
lines
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...)
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Aug 6 03:48:27 1993 UTC (31 years, 5 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +21 -21
lines
update for fts library change
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 17:58:27 1993 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1
lines
Add RCS identifiers.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: WFJ-920714,
CSRG
CVS tags: patchkit-0-2-2,
netbsd-alpha-1,
netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9,
netbsd-0-8,
WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
initial import of 386bsd-0.1 sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>