>> Be careful about one thing: if the same file occurs more than once in >> the archive, you must use the *last* occurrence, not the first, as the >> contents of the file. That might require scanning through the whole >> archive. > >Scan the archive in reverse. :)
I wish if we could. The tar doesn't put the trailer record at the end for us to jump back toward the beginning of file reliably if I recall correctly. So our best bet is to create a linked list of valid embedded entity that needs to be retrieved if a member name is given as we scan forward *ONCE* to save the time for re-scanning later on. Creating such external list is a waste of time and hardware resources, but tar archive was never meant to be scanned backward. After all, it was Tape ARchive. _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd