freebsd-dev/bin/pax
Bruce Evans d1e00e9390 Improve the handling of large minor numbers:
cpio/copyout.c:
Don't output a file if the major, minor or totality of its rdev would be
truncated.  Print a message about the skipped files to stderr but don't
report the error in the exit status.  cpio's abysmal error handling doesn't
allow continuing after an error, and the rdev checks had to be misplaced
to avoid the problem of returning an error code from routines that return
void.

pax/pax.h:
Use the system macros for major(), minor() and makedev().

pax already checks _all_ output conversions for overflow.  This has the
undesirable effect that failure to convert relatively useless fields
such as st_dev for regular files causes files not to be output.  pax
doesn't report exactly which fields couldn't be converted.

tar/create.c:
Don't output a file if the major or minor its rdev would be truncated.
Print a message about the skipped files to stderr and report the error
in the exit status.

tar/tar.c:
For not immediately fatal errors, exit with status 1, not the error count
(mod 256).

All:
Minor numbers are limited to 21 bits in pax's ustar format and to 18
bits in archives created by gnu tar (gnu tar wastes 3 bits for padding).
pax's and cpio's ustar format is incompatible with gnu tar's ustar
format for other reasons (see cpio/README).
1995-06-26 06:24:48 +00:00
..
ar_io.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
ar_subs.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
buf_subs.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
cache.c Added $Id$ 1994-09-24 02:59:15 +00:00
cache.h Added $Id$ 1994-09-24 02:59:15 +00:00
cpio.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
cpio.h Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
extern.h Added $Id$ 1994-09-24 02:59:15 +00:00
file_subs.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
ftree.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
ftree.h Added $Id$ 1994-09-24 02:59:15 +00:00
gen_subs.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
Makefile Added $Id$ 1994-09-24 02:59:15 +00:00
options.c You will find enclosed some changes to make gcc -Wall more happy in 1995-03-19 13:29:28 +00:00
options.h Added $Id$ 1994-09-24 02:59:15 +00:00
pat_rep.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
pat_rep.h Added $Id$ 1994-09-24 02:59:15 +00:00
pax.1 Added $Id$ 1994-09-24 02:59:15 +00:00
pax.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
pax.h Improve the handling of large minor numbers: 1995-06-26 06:24:48 +00:00
sel_subs.c Added $Id$ 1994-09-24 02:59:15 +00:00
sel_subs.h Added $Id$ 1994-09-24 02:59:15 +00:00
tables.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
tables.h Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
tar.c Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
tar.h Added $Id$ 1994-09-24 02:59:15 +00:00
tty_subs.c Added $Id$ 1994-09-24 02:59:15 +00:00