Skip to content

Instantly share code, notes, and snippets.

@dagolden
Created March 24, 2010 13:30
Show Gist options
  • Save dagolden/342277 to your computer and use it in GitHub Desktop.
Save dagolden/342277 to your computer and use it in GitHub Desktop.
# Archive::Tar versions >= 1.09 use the following to enable a compatibility
# hack so that the resulting archive is compatible with older clients.
# If no file path is 100 chars or longer, we disable the prefix field
# for maximum compatibility. If there are any long file paths then we
# need the prefix field after all.
$Archive::Tar::DO_NOT_USE_PREFIX =
(grep { length($_) >= 100 } @$files) ? 0 : 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment