Article View: comp.sys.next.sysadmin
Article #1302Re: bug in tar, anyone fixed it?
From: Zenon Fortuna
Date: Wed, 07 Oct 1992 20:00
Date: Wed, 07 Oct 1992 20:00
40 lines
2019 bytes
2019 bytes
In article <1avjb7INN848@gap.caltech.edu> madler@cco.caltech.edu (Mark Adler) writes: > >Zenon Fortuna admirably does some testing and concludes: > >>> The original posting was about tar-like program which should handle names >>> longer than 100 characters. >>> MANY PEOPLE answered, that the gnutar is the solution. Somebody is wrong :) > >gnutar is indeed *a* solution. You did not follow your test through to >its conclusion, which is to reextract the files. Yes, the names (including >paths) longer than 100 characters get renamed to @@MaNgLeD.n, where n is >an integer. [some statements omitted] > >I said "a" solution as opposed to "the" solution, since this doesn't >help when you want to extract a particular file without extracting all >of them. There may be a way to do that with gnutar that I don't know, >are extracted. Actually, let me try that ... > >Hmm, doesn't quite work. A "gnutar xvf - @@MaNgLeD.\*" got all the >files like that, but at the end it was not able to rename them to where >they belonged, since the directories did not exist. I might call this a >bug in gnutar ... [some statements omitted] > >Mark Adler >madler@cco.caltech.edu Yes, gnutar works but is very limited in its handling of looong names. But, if someone can accept "cpio(1)", then this utility works OK. Try the commands: % find . -print | cpio -o > file_name (to create archive) % cpio -it < file_name (to make listing) % cpio -i 'selected_name' < file_name (to extract) and this works for all lengths of file- and directory names. -Z.
Technical Details
Message-ID:
<1992Oct7.200012.12506@resonex.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!netcomsv!resonex!zenonReferences:
<1992Oct6.204852.16384@wam.umd.edu> <1992Oct6.193147.17559@resonex.com> <1avjb7INN848@gap.caltech.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!netcomsv!resonex!zenon From: zenon@resonex.com (Zenon Fortuna) Subject: Re: bug in tar, anyone fixed it? Message-ID: <1992Oct7.200012.12506@resonex.com> Organization: Resonex Inc., Sunnyvale CA References: <1992Oct6.204852.16384@wam.umd.edu> <1992Oct6.193147.17559@resonex.com> <1avjb7INN848@gap.caltech.edu> Date: Wed, 7 Oct 1992 20:00:12 GMT Lines: 40