freebsd-dev/bin
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
..
cat Added $Id$ 1994-09-24 02:59:15 +00:00
chflags Set NOSHARED=true, having this binary static makes it much easier to 1995-07-24 01:44:17 +00:00
chmod You will find enclosed some changes to make gcc -Wall more happy in 1995-03-19 13:29:28 +00:00
cp Don't unlink the target file if the copy failed. This behaviour isn't 1995-06-14 05:41:27 +00:00
csh Fix csh to determine event number properly, i.e. stop by ^*-% too. 1995-08-10 05:13:42 +00:00
date Use %+ to print data using LC_TIME 1995-08-05 23:08:17 +00:00
dd More koshering [ul]case fix, don't use pre-initialized tables at all, 1995-01-17 23:04:29 +00:00
df Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
domainname You will find enclosed some changes to make gcc -Wall more happy in 1995-03-19 13:29:28 +00:00
echo Added $Id$ 1994-09-24 02:59:15 +00:00
ed Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
expr expr(1) didn't comply to Posix.2 and its own man page: any 1995-08-04 17:08:07 +00:00
hostname Added $Id$ 1994-09-24 02:59:15 +00:00
kill Allow 0 as a signal number to match the man page. 1995-03-05 21:52:41 +00:00
ln Use lstat() instead of stat() for checking if the final source file exists, 1994-12-06 18:50:44 +00:00
ls Change ctime to strftime %c to use national date/time representation 1995-08-08 00:03:04 +00:00
mkdir Added $Id$ 1994-09-24 02:59:15 +00:00
mv The command to `move' across file system boundaries is actually 1995-08-15 19:44:39 +00:00
pax Fix possible FS corruption caused by extra parameter to pax. 1995-08-16 23:12:25 +00:00
ps Delete bogus referneces to timezone code internal header file `tzfile.h', 1995-08-07 19:17:46 +00:00
pwd Added $Id$ 1994-09-24 02:59:15 +00:00
rcp Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
rm Allow root to delete uchg/uappnd files 1995-04-13 13:35:09 +00:00
rmail Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
rmdir Added $Id$ 1994-09-24 02:59:15 +00:00
sh sh(1) incorrectly ignored an EOF condition when looking for the 1995-08-11 08:18:39 +00:00
sleep Added $Id$ 1994-09-24 02:59:15 +00:00
stty Improve the recently changed and an old error message: don't report probe 1995-07-04 08:16:32 +00:00
sync Added $Id$ 1994-09-24 02:59:15 +00:00
test Remove trailing whitespace. 1995-05-30 00:07:29 +00:00
Makefile Added domainname. 1994-09-18 21:25:26 +00:00
Makefile.inc WHOOPS! Put that back! Sorry, wrong Makefile.inc! 1994-08-08 19:30:03 +00:00