freebsd-skq/bin/pax
Nate Williams bdc95502ca Fix possible FS corruption caused by extra parameter to pax.
oo
Turns out, it's pretty important if you use PAX for backup.  In the man
page for PAX, there is an error (OK, we could call it a "potentially
catastrophic incompleteness").  It reads:

>  The command:
>
>      pax -r -v -f filename
>
>  gives the verbose table of contents for an archive stored in filename.

Yup, it does do that.  With a side effect: it also _replaces_ all the
files that come in from the archive.  As is my custom, I did my
backup-validation real soon after the backup was written.  Precisely
because I've seen the same sort of thing happen on other systems.  So all
that file-restoring didn't do a lot of damage.  Probably helped my
fragmentation somewhat (aha, an online defragger?) It did confuse one
hapless user, who lost an email message he _knew_ he hadn't deleted.
Apparently the system restored the file as of just before that critical
message came in.

The correct entry should read:

>  The command:
>
>      pax -v -f filename
>




>  gives the verbose table of contents for an archive stored in filename.


Submitted by:	John Beckett <jbeckett@southern.edu> via the BSDI mailing list
1995-08-16 23:12:25 +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 Delete bogus referneces to timezone code internal header file `tzfile.h', 1995-08-07 19:17:46 +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 Fix possible FS corruption caused by extra parameter to pax. 1995-08-16 23:12:25 +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