[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tar(1) problem with long file names.
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: tar(1) problem with long file names.
- From: Hannah Schroeter <hannah_(_at_)_schlund_(_dot_)_de>
- Date: Sat, 22 Oct 2005 11:32:15 +0200
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
- Organization: Schlund + Partner AG
On Fri, Oct 21, 2005 at 02:07:16PM -0500, eric wrote:
>It seems that tar(1) is only able to archive filenames of 100 characters or
>less. However, ufs can handle (I've been testing using touch(1)) filenames
>up to 255 characters. I tried to modify the following in src/bin/pax/tar.h
It's an issue of the (us)tar data format.
Especially, raising it to 255 doesn't help either, as the field encodes
*path* names, and *path* names can be up to 1023 or so bytes.
>Has anyone bumped into this and made a more reliable fix?
Use a more apt data format in your use case. Ehm correcting myself:
According to pax(1), 100 is the limit for pathnames in the old tar
format, while the limit for ustar is 250. For *pathnames*!.
Perhaps you can use cpio (or pax with -x cpio).
Visit your host, monkey.org