bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VMS file attribute issue with gnutar / file utilities.


From: Bruno Haible
Subject: Re: VMS file attribute issue with gnutar / file utilities.
Date: Sun, 1 Jun 2008 00:05:51 +0200
User-agent: KMail/1.5.4

[This is off-topic for this list, but anyway.]
John E. Malmberg wrote:
> The best hack that I can come up with is to mangle the name of the file 
> to contain that information, and demangle it on the unpack.
> 
> This way if the tarball is unpacked on a non-VMS system and re-packed, 
> the file attribute information will not be lost.

Another option is to do it the way the Apple MacOS "resource forks" are
stored in .zip files. This is done as follows: If a file foo/bar.suf
has a "resource fork" (usually up to 512 bytes of binary data), then the
zip contains two files

  foo/bar.suf
  __APPLE_RESOURCES__/foo/bar.suf

This way, if the tarball is unpacked on a non-MacOS system and re-packed,
the added information will not be lost. And additionally, this added
information does not hurt: it is in a separate directory that can easily
be removed.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]