The NetBSD Project

CVS log for src/bin/pax/file_subs.c

[BACK] Up to [cvs.NetBSD.org] / src / bin / pax

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 7 10:55:29 2024 UTC (5 months, 1 week ago) by martin
Branches: netbsd-9
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +45 -9 lines
Pull up following revision(s) (requested by riastradh in ticket #1863):

	bin/pax/buf_subs.c: revision 1.31
	tests/bin/pax/t_pax.sh: revision 1.3
	tests/bin/pax/t_pax.sh: revision 1.4
	tests/bin/pax/t_pax.sh: revision 1.5
	tests/bin/pax/t_pax.sh: revision 1.6
	tests/bin/pax/t_pax.sh: revision 1.7
	bin/pax/extern.h: revision 1.61
	bin/pax/pax.c: revision 1.50
	bin/pax/pax.c: revision 1.51
	bin/pax/file_subs.c: revision 1.65
	bin/pax/ftree.c: revision 1.43
	bin/pax/ar_subs.c: revision 1.58

pax: exit 0 if stdin filelist is used and empty

If copying a list of files from stdin, exit zero instead of non-zero
if there are no files supplied.

AFAICT, POSIX doesn't require a non-zero an error in this situation,
since there are no files to not match.

Fix from PR bin/41736 by Lloyd Parkes.

pax: don't overwrite destination if -r -w copy fails

Add more error handling to pax -r -w so that any failure
during the copy to the temporary file (including a failed flush)
prevents any existing destination file from being replaced
with the partial (including possibly empty) temporary file.

The partial temporary file is removed.  pax still exists non-zero.
Thanks to Michael van Elst (mlelstv@) for the analysis
of the problem in the PR.
Should fix PR misc/33753.

tests/bin/pax: Add test for pax list in an ungettable cwd.
The list operation has no need to touch the file system, so it should
have no need for open(".") or getcwd() to succeed.

PR bin/44498: tar(1) unnecessarily demands that getcwd() work
(The PR was filed about tar(1), which is now bsdtar by default, but
the issue applies to pax(1) too and would continue to apply to tar(1)
if you set MKBSDTAR=no.)
pax(1): Don't require open(".") or getcwd to work for list operation.

PR 44498: tar(1) unnecessarily demands that getcwd() work
tests/bin/pax: Test pax(1) succeeds with empty file list on stdin.

PR bin/41736: pax reports an error when copying zero files
tests/bin/pax: Add some more cwd-related test cases.

PR bin/44498: tar(1) unnecessarily demands that getcwd() work
pax(1): Only require getcwd if we're reading without --insecure.

No other paths use the result of getcwd.

PR bin/44498: tar(1) unnecessarily demands that getcwd() work

Revision 1.64.10.1: download - view: text, markup, annotated - select for diffs
Wed Aug 7 10:52:49 2024 UTC (5 months, 1 week ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +45 -9 lines
Pull up following revision(s) (requested by riastradh in ticket #776):

	bin/pax/buf_subs.c: revision 1.31
	tests/bin/pax/t_pax.sh: revision 1.3
	tests/bin/pax/t_pax.sh: revision 1.4
	tests/bin/pax/t_pax.sh: revision 1.5
	tests/bin/pax/t_pax.sh: revision 1.6
	tests/bin/pax/t_pax.sh: revision 1.7
	bin/pax/extern.h: revision 1.61
	bin/pax/pax.c: revision 1.50
	bin/pax/pax.c: revision 1.51
	bin/pax/file_subs.c: revision 1.65
	bin/pax/ftree.c: revision 1.43
	bin/pax/ar_subs.c: revision 1.58

pax: exit 0 if stdin filelist is used and empty

If copying a list of files from stdin, exit zero instead of non-zero
if there are no files supplied.

AFAICT, POSIX doesn't require a non-zero an error in this situation,
since there are no files to not match.

Fix from PR bin/41736 by Lloyd Parkes.

pax: don't overwrite destination if -r -w copy fails

Add more error handling to pax -r -w so that any failure
during the copy to the temporary file (including a failed flush)
prevents any existing destination file from being replaced
with the partial (including possibly empty) temporary file.

The partial temporary file is removed.  pax still exists non-zero.
Thanks to Michael van Elst (mlelstv@) for the analysis
of the problem in the PR.
Should fix PR misc/33753.

tests/bin/pax: Add test for pax list in an ungettable cwd.
The list operation has no need to touch the file system, so it should
have no need for open(".") or getcwd() to succeed.

PR bin/44498: tar(1) unnecessarily demands that getcwd() work
(The PR was filed about tar(1), which is now bsdtar by default, but
the issue applies to pax(1) too and would continue to apply to tar(1)
if you set MKBSDTAR=no.)
pax(1): Don't require open(".") or getcwd to work for list operation.

PR 44498: tar(1) unnecessarily demands that getcwd() work
tests/bin/pax: Test pax(1) succeeds with empty file list on stdin.

PR bin/41736: pax reports an error when copying zero files
tests/bin/pax: Add some more cwd-related test cases.

PR bin/44498: tar(1) unnecessarily demands that getcwd() work
pax(1): Only require getcwd if we're reading without --insecure.

No other paths use the result of getcwd.

PR bin/44498: tar(1) unnecessarily demands that getcwd() work

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Aug 5 13:37:26 2024 UTC (5 months, 2 weeks ago) by riastradh
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -4 lines
pax(1): Nix trailing whitespace.

No functional change intended.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun May 28 21:42:40 2023 UTC (19 months, 3 weeks ago) by lukem
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +45 -9 lines
pax: don't overwrite destination if -r -w copy fails

Add more error handling to pax -r -w so that any failure
during the copy to the temporary file (including a failed flush)
prevents any existing destination file from being replaced
with the partial (including possibly empty) temporary file.
The partial temporary file is removed.  pax still exists non-zero.

Thanks to Michael van Elst (mlelstv@) for the analysis
of the problem in the PR.

Should fix PR misc/33753.

Revision 1.63.26.3: download - view: text, markup, annotated - select for diffs
Tue Apr 21 19:37:33 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.63.26.2: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.26.2: +2 -2 lines
Ooops, restore accidently removed files from merge mishap

Revision 1.63.26.2
Tue Apr 21 18:41:05 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.63.26.1: +2 -2 lines
Sync with HEAD

Revision 1.63.26.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 21:41:03 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -4 lines
Sync with HEAD

Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed Mar 20 03:13:39 2019 UTC (5 years, 10 months ago) by gutteridge
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, 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-10-base, 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, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: netbsd-9, netbsd-10
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -4 lines
pax: fix typos in comments in file_subs.c & tar.c

Stamp out "greengrocers' apostrophes" in various places (arguably there
are still more present, but style guides vary on that, and my energies
spent corralling wayward punctuation marks could be spent elsewhere).

Revision 1.62.12.1: download - view: text, markup, annotated - select for diffs
Tue Aug 19 23:45:11 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +4 -4 lines
Rebase to HEAD as of a few days ago.

Revision 1.62.6.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:26:23 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +4 -4 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.63: download - view: text, markup, annotated - select for diffs
Mon Jul 29 17:46:36 2013 UTC (11 years, 5 months 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, 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-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, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -4 lines
PR/48095: NAKAJIMA Yoshihiro: remove casts from time_t to long

Revision 1.61.12.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:15:50 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +4 -10 lines
Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.61.10.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 20:42:59 2009 UTC (15 years, 9 months ago) by snj
Branches: netbsd-5
CVS tags: 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-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, 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
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +4 -10 lines
Pull up following revision(s) (requested by christo in ticket #678):
	bin/pax/extern.h: revision 1.56
	bin/pax/file_subs.c: revision 1.62
	bin/pax/options.c: revision 1.104
	bin/pax/pat_rep.c: revision 1.29
	bin/pax/pax.h: revision 1.30
Fixes from christos for pr-41167
XXX -X is still broken, but that wasn't part of this PR.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Apr 7 19:52:35 2009 UTC (15 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, khorben-n900, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -10 lines
Fixes from christos for pr-41167

XXX -X is still broken, but that wasn't part of this PR.

Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:11:40 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +24 -15 lines
sync with HEAD

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Jan 10 04:24:51 2008 UTC (17 years ago) by tls
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-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, mjf-devfs2, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: netbsd-5, jym-xensuspend
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +24 -15 lines
Teach set_ftime about symbolic links, because it has to know: on some
Linux systems, when we build as a tool we think we have lutimes but it
doesn't work on some filesystems at runtime.  A bit ugly but effective
and without use of AC_TRY_RUN in the tool build.  Tidier (than mine)
set_ftime reorganization from christos.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Apr 29 20:23:34 2007 UTC (17 years, 8 months ago) by msaitoh
Branches: MAIN
CVS tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
fix typos

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Feb 11 10:43:18 2006 UTC (18 years, 11 months ago) by dsl
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, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +40 -40 lines
Change all the 'return(x)' to 'return c'.
Makes some other searches I want to do a bit easier.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Jan 4 22:02:11 2006 UTC (19 years ago) by yamt
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +19 -3 lines
obey umask as it used to be before the "mkstemp and then rename" change.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Sep 18 12:15:41 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +10 -3 lines
Check for another race reported by chuq.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Fri Sep 16 16:48:18 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -15 lines
Another missing mkdir() race pointed out by chuq. Factor out the mkdir code.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Tue Sep 13 20:09:55 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
use stat and not lstat to detect if we have a directory. refactor the mkpath()
code.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Sep 13 15:50:17 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +13 -3 lines
when creating directories, check if the failure occured because someone
else created the directory before we did to avoid races. From chuq.

Revision 1.41.2.8.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 23 17:32:16 2005 UTC (19 years, 6 months ago) by snj
Branches: netbsd-2
CVS tags: 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
Diff to: previous 1.41.2.8: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.8: +4 -4 lines
Apply patch (requested by riz in ticket #5512):
Sync pax with HEAD of 2005-07-22.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Apr 24 01:24:57 2005 UTC (19 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -4 lines
For clarity instead of using -1 and -2 use the negative of the archive type.

Revision 1.41.2.8: download - view: text, markup, annotated - select for diffs
Fri Nov 12 05:02:13 2004 UTC (20 years, 2 months ago) by jmc
Branches: netbsd-2-0
CVS tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Diff to: previous 1.41.2.7: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.7: +12 -8 lines
Pullup rev 1.52 (requested by christos in ticket #921)

Keep track of the length of the gnu long name/link hack, so that
we can append to it. Modify the code so that file_write is re-entrant,
even in the gnu long name/link hack.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Sep 22 15:03:18 2004 UTC (20 years, 4 months ago) by christos
Branches: MAIN
CVS tags: 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
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +12 -8 lines
Keep track of the length of the gnu long name/link hack, so that
we can append to it. Modify the code so that file_write is re-entrant,
even in the gnu long name/link hack.

The old code assumed that the buffer already contained the necessary
blocks to satisfy the read file request that contained the long
filename. This is not always the case, specially when we are dealing
with pipes which do shorter reads, thus having more probability
that a long file name will fall across a buffer boundary.

To reproduce, create a tar archive with a lot of gnu-long-names
(pkgsrc/devel/libsigc++2 is a good example), do a tar -tf to get
a list of filenames, compress it and do a tar -tzf to get another
list of the filenames. Notice that the two lists differ.

Revision 1.23.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 25 20:51:49 2004 UTC (20 years, 4 months ago) by he
Branches: netbsd-1-6
Diff to: previous 1.23.2.2: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.2: +75 -32 lines
Pull up revisions 1.42-1.46,1.48-1.50 (requested by cube in ticket #1736):
  Fix handling of certain archives, fixing core dump (PR#25207).
  Fix problem with trailing slashes (PR#15188).
  Treat sticky bit specially for non-superuser (PR#25350).
  Set chflags after rename, not before.
  Don't exit with 1 on broken archives that mark directories as files.
  Don't attempt to remove current directory.
  Break out of loop and avoid infinite loop in certain error situations.
  Salvage the `create parent directories and try again' patch.

Revision 1.41.2.7: download - view: text, markup, annotated - select for diffs
Wed Aug 25 02:44:45 2004 UTC (20 years, 4 months ago) by jmc
Branches: netbsd-2-0
CVS tags: netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1
Diff to: previous 1.41.2.6: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.6: +48 -15 lines
Pullup rev 1.51 (requested by tron in ticket #784)

Propery handle "cpio" archives where the last hardlink includes the
data of a file. PR#26514

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Aug 22 16:46:18 2004 UTC (20 years, 5 months ago) by tron
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +48 -15 lines
Propery handle "cpio" archives where the last hardlink includes the
data of a file. This fixes PR bin/26514.

Revision 1.41.2.6: download - view: text, markup, annotated - select for diffs
Thu Aug 12 19:35:44 2004 UTC (20 years, 5 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.41.2.5: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.5: +32 -15 lines
Pullup rev 1.48-1.50 (requested by cube in ticket #754)

Fixes for pax breaking on some archives

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Jul 2 07:17:17 2004 UTC (20 years, 6 months ago) by enami
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +19 -13 lines
Salvage the `create parent directories and try again' path which is
removed by the previous commit.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Jun 26 13:28:09 2004 UTC (20 years, 6 months ago) by grant
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -2 lines
break out of the loop and avoid the infinite loop if attempts to
create, unlink and create all fail.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Jun 26 12:39:06 2004 UTC (20 years, 6 months ago) by grant
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +9 -4 lines
don't attempt to remove the current directory.

Revision 1.41.2.5: download - view: text, markup, annotated - select for diffs
Tue Jun 22 07:15:49 2004 UTC (20 years, 7 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.41.2.4: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.4: +3 -3 lines
Pull up revision 1.47 (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.47: download - view: text, markup, annotated - select for diffs
Sun Jun 20 22:20:14 2004 UTC (20 years, 7 months ago) by jmc
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3 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.23.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 16 01:27:38 2004 UTC (20 years, 7 months ago) by jmc
Branches: netbsd-1-6
Diff to: previous 1.23.2.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.1: +4 -4 lines
fix botched pullup from ticket #1021 and make sure this compiles on
non-NetBSD hosts again. Also fixes PR#24481

Revision 1.41.2.4: download - view: text, markup, annotated - select for diffs
Thu May 6 05:29:31 2004 UTC (20 years, 8 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.41.2.3: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.3: +8 -8 lines
Pullup rev 1.45-1.46 (requested by snj in ticket #252)

Set the chflags *after* the rename, not before.
Don't exit with 1 on broken archives that mark directories as files for
the benefit of pkgsrc.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon May 3 02:22:54 2004 UTC (20 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
Don't exit with 1 on broken archives that mark directories as files for
the benefit of pkgsrc. I would have prefered that people fixed their
archivers instead.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Apr 30 05:14:23 2004 UTC (20 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +7 -7 lines
Set the chflags *after* the rename, not before.

Revision 1.41.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 28 03:31:11 2004 UTC (20 years, 8 months ago) by grant
Branches: netbsd-2-0
Diff to: previous 1.41.2.2: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.2: +22 -14 lines
Pull up revision 1.44 (requested by snj in ticket #217):

PR/25350: Alan Barrett: Treat the sticky bit specially as non-superusers
cannot set it on non-directories (elvis-2.2_0 extraction failed)

Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 28 03:30:13 2004 UTC (20 years, 8 months ago) by grant
Branches: netbsd-2-0
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.1: +19 -2 lines
Pull up revision 1.43 (requested by snj in ticket #217):

PR/25188: Thomas Klausner: pax-as-tar problem with trailing slashes
The problem is with the program that generates the tar file:
-rwxrwxrwx  1 root     wheel          0 Feb  8 16:46 faad2/aacDECdrop/
It creates directory nodes without the 'd' bit set, so that pax thinks
they are files and does the temporary name and dance with them. Added
code to detect this condition, warn about it, and work around it.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Apr 27 13:45:45 2004 UTC (20 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +22 -14 lines
PR/25350: Alan Barrett: Treat the sticky bit specially as non-superusers
cannot set it on non-directories (elvis-2.2_0 extraction failed)

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Apr 25 16:20:24 2004 UTC (20 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +19 -2 lines
PR/25188: Thomas Klausner: pax-as-tar problem with trailing slashes
The problem is with the program that generates the tar file:
-rwxrwxrwx  1 root     wheel          0 Feb  8 16:46 faad2/aacDECdrop/
It creates directory nodes without the 'd' bit set, so that pax thinks
they are files and does the temporary name and dance with them. Added
code to detect this condition, warn about it, and work around it.

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 04:20:16 2004 UTC (20 years, 9 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2 lines
Pullup rev 1.42 (requested by christos in ticket #170)

Fixes for multiple pax pr's. PR#25200. PR#25207.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Apr 20 20:00:37 2004 UTC (20 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2 lines
PR/25207: Hubert Feyrer: tar cores on certain archive contents
Don't forget to cleanup xtmp_name when we fail to create the temporary file.

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 7 06:57:38 2004 UTC (20 years, 9 months ago) by jmc
Branches: netbsd-1-6
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +143 -104 lines
Pullup rev 1.24-1.41 (requested by rafal in ticket #1021)

Pullup pax to current version on trunk. Includes many fixes.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Feb 13 23:10:14 2004 UTC (20 years, 11 months ago) by matt
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +8 -2 lines
When pax catches a signal and cleans up, make sure to remove any temporary
file that was being extracted to.  This will prevent pax from leaving
droppings when you hit ^C.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Feb 13 08:27:12 2004 UTC (20 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -8 lines
Nuke extra mkstemp.  Use name, not tmp_name with chk_path.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Feb 13 00:11:30 2004 UTC (20 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -6 lines
Back out last change.  Since the name is the entire path, prefixing it
with a '.' will not have the desired effect.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Feb 13 00:07:55 2004 UTC (20 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -5 lines
When creating the temporary file, prefix the name with a '.'

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Feb 12 22:19:18 2004 UTC (20 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +44 -36 lines
When restoring files from an archive, initially restore to a temp-file and
once it has been instantiated correctly, rename it to desired name.  This
prevents the problem of partially created files being accessed before they
are complete.  If said file is a shared library, that can cause ramdon core
dumps.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Oct 27 00:12:41 2003 UTC (21 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +7 -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.35: download - view: text, markup, annotated - select for diffs
Mon Oct 13 07:41:22 2003 UTC (21 years, 3 months ago) by agc
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -37 lines
Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22397 by Joel Baker, confirmed
to the board by Keith Muller.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Aug 7 09:05:20 2003 UTC (21 years, 5 months ago) by agc
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +33 -3 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Jun 23 13:33:15 2003 UTC (21 years, 7 months ago) by grant
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -22 lines
no need for HAVE_LCHOWN and HAVE_LCHMOD anymore.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Feb 10 07:49:57 2003 UTC (21 years, 11 months ago) by grant
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -2 lines
add missing braces.

from HIRATSUKA Kouichirou in PR bin/20276.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Feb 9 18:27:10 2003 UTC (21 years, 11 months ago) by grant
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +21 -18 lines
cosmetic error condition improvements.
- sprinkle some fflush() to print filenames correctly.
- print a \n to stdout to fix formatting.
- English, consistently use "Cannot" in error messages.

some whitespace cleanup.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Feb 2 10:21:14 2003 UTC (21 years, 11 months ago) by wiz
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
Fix various spelling, grammar, and punctuation problems in comments, from Sergey Svishchev in PR 20164.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Jan 20 05:29:54 2003 UTC (22 years ago) by simonb
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
The Double-Semi-Colon Police.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Jan 6 20:30:28 2003 UTC (22 years ago) by wiz
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
writable, not writeable.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Dec 19 14:23:53 2002 UTC (22 years, 1 month ago) by grant
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -3 lines
Fix oops in last, chown() failure should be fatal.

Noted by Charles Hannum.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Dec 19 14:02:54 2002 UTC (22 years, 1 month ago) by grant
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -8 lines
Don't attempt to chown files if euid != 0, and make chown() non-fatal
if it does fail.

This addresses my PR bin/18912 (running pkg_info as non-root user on a
binary package).

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Oct 17 00:32:36 2002 UTC (22 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +20 -9 lines
Add proper longlink support. Previously we handled longname support, and
the longlink support was completely wrong.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Oct 12 15:39:29 2002 UTC (22 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +48 -21 lines
merge OpenBSD changes:
    - correct -C processing
    - add ability to read filenames and flags from a file
    - don't print dangerous escape sequences to the terminal
    - use strlcpy/strncpy properly.
    - handle tmpfile creation better.
    - improve documentation of options.
    - handle stdout/stderr list selection correctly.
    - kill gzip when we get interrupted.
    - simplify gzip setup.
    - add more flags to programs.

additional changes:
    - librmt processing.
    - set POSIXLY_CORRECT in options parsing.
    - prevent more string overruns.
    - support -T

we don't turn the switch on to replace tar and cpio yet.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Feb 11 11:19:26 2002 UTC (22 years, 11 months ago) by wiz
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
Branch point for: netbsd-1-6
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
"doesn't" should have an 's'.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Jan 31 19:27:53 2002 UTC (22 years, 11 months ago) by tv
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3 lines
Protect __RCSID and __COPYRIGHT from being invoked if not defined.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Jan 29 10:20:28 2002 UTC (22 years, 11 months ago) by tv
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +42 -6 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
Thu Oct 25 05:33:33 2001 UTC (23 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -131 lines
- ansi KNF (just remove all the #ifndef __STDC__ prototype junk,
  leaving the ansi stuff)
- use longlong_t instead of quad_t (etc), and rename *uqd*() -> *ull*()
- clean up the NET2_STAT stuff similar to ftpd; provide #defines and
  macros which select which cast to use, etc
- clean up the NET2_FTS and NET2_REGEX #define use

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 15:03:44 2000 UTC (24 years, 7 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +4 -3 lines
Sync w/ netbsd-1-5-base.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Jun 17 18:19:10 2000 UTC (24 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -3 lines
minor KNF nits.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Mar 13 22:46:59 2000 UTC (24 years, 10 months ago) by soren
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
Fix doubled 'the' in comment.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Feb 17 03:12:24 2000 UTC (24 years, 11 months ago) by itohy
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +15 -14 lines
Cleanup and fix typos.
Partially from FreeBSD.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Feb 17 03:06:13 2000 UTC (24 years, 11 months ago) by itohy
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
Fix SIGINFO botch (PR #8868).
Continue partial write(2) on signals (xwrite()).
Partial read(2) at a few places are also continued (xread()).

Add {read,write}_with_restart() hooks for porting on systems
which don't restart interrupted read()/write() calls.

Reviewed and discussed in tech-kern and tech-userlevel lists.

Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:27:07 1999 UTC (25 years ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +42 -9 lines
Pull up to last week's -current.

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Sun Nov 7 15:48:25 1999 UTC (25 years, 2 months ago) by mycroft
Branches: comdex-fall-1999
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.1: +1101 -0 lines
Completely disable all the chflags(2) support for now.  With this enabled, I
can't even get a build to finish over NFS.  Not acceptable.

Revision 1.15.2.1
Sun Nov 7 15:48:24 1999 UTC (25 years, 2 months ago) by mycroft
Branches: comdex-fall-1999
FILE REMOVED
Changes since revision 1.15: +0 -1101 lines
file file_subs.c was added on branch comdex-fall-1999 on 1999-11-07 15:48:25 +0000

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Nov 7 15:48:24 1999 UTC (25 years, 2 months ago) by mycroft
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, comdex-fall-1999-base
Branch point for: comdex-fall-1999
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -4 lines
Completely disable all the chflags(2) support for now.  With this enabled, I
can't even get a build to finish over NFS.  Not acceptable.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Nov 7 09:44:11 1999 UTC (25 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
Don't try to set file flags for a symlink.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Nov 1 01:35:58 1999 UTC (25 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +26 -2 lines
add a new -p subflag: 'f' to preserve 4.4BSD fileflags.  this only
really works for `pax -rw' but that's where it is most useful.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Oct 22 10:43:11 1999 UTC (25 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +17 -4 lines
support ././@LongLink extraction, as created by GNU tar.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Oct 22 10:38:41 1999 UTC (25 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -7 lines
remove some old cruft.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Feb 28 15:52:04 1998 UTC (26 years, 10 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
Branch point for: wrstuden-devbsize
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
fix typo in a comment

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Feb 3 07:48:38 1998 UTC (26 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +7 -2 lines
Deal with GCC warnings.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Oct 19 13:02:43 1997 UTC (27 years, 3 months ago) by mycroft
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
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -5 lines
When copying time stamps, copy the microseconds, too.  Also nuke silly
static structure.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Oct 8 22:57:52 1997 UTC (27 years, 3 months ago) by enami
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -7 lines
Restore owner/group/mode/atime/mtime of symbolic links.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jul 20 20:32:28 1997 UTC (27 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -9 lines
- Rename local warn so tty_warn that we can include <err.h> since this program
  uses err() and errx().
- Fix printf format strings.
- Added WARNS=1; note
- Added missing prototypes.
- Split overloaded trail function into trail() and subtrail().

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jan 11 02:06:38 1997 UTC (28 years ago) by tls
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +43 -43 lines
kill 'register'

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Mar 21 09:07:18 1995 UTC (29 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: 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.3: preferred, colored
Changes since revision 1.3: +7 -2 lines
convert to new RCS id conventions.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Jun 14 00:42:07 1994 UTC (30 years, 7 months ago) by mycroft
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.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
Fix up RCS ids.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Jun 13 16:33:57 1994 UTC (30 years, 7 months ago) by jtc
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
Add RCS ID's

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Jun 13 16:13:37 1994 UTC (30 years, 7 months ago) by jtc
Branches: CSRG
CVS tags: lite-2, lite-1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
From 4.4 lite

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Jun 13 16:13:36 1994 UTC (30 years, 7 months ago) by jtc
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>