another 2.2 gotcha
Mike Khaw
mkhaw at teknowledge-vaxc.ARPA
Wed May 4 10:24:31 AEST 1988
Under ultrix 1.2 (and other 4bsd Unixes, as well as HP-UX and NCR SysV),
tar cf - /usr/myhome/subdir/myfile | tar tf -
would produce
/usr/myhome/subdir/myfile
Under ultrix 2.2, you get
/usr/
/usr/myhome/
/usr/myhome/subdir/myfile
We've been using tar to "archive" user files where the archiving utility
will read back the tar tape and then delete the on-disk copies of what's
been copied to tape (i.e., the names that "tar t" returns).
Well, you can see how the way the 2.2 version of tar works becomes a
problem. We nearly lost our /usr subtree. I certainly don't recall
seeing any mention of this change to tar's behavior in the Release
Notes, nor is it prominently noted (if at all) in the man file.
Mike Khaw
--
internet: mkhaw at teknowledge-vaxc.arpa
usenet: {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge-vaxc.arpa
USnail: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303
More information about the Comp.unix.ultrix
mailing list