Skip to content

Instantly share code, notes, and snippets.

@databus23
Last active December 12, 2015 04:38
Show Gist options
  • Save databus23/4715855 to your computer and use it in GitHub Desktop.
Save databus23/4715855 to your computer and use it in GitHub Desktop.
The gem archive-tar-minitar can't unpack tars with paths that contain more then 100 characters. (This shell command where executed on OSX)
$ touch a_very_very_very_very_very_very_very_very_very_very_very_very_long_filename_longer_then_100_characters.rb
$ tar -cf test.tar a_very_very_very_very_very_very_very_very_very_very_very_very_long_filename_longer_then_100_characters.rb
$ ruby -r archive/tar/minitar -e 'Archive::Tar::Minitar.unpack("test.tar","output/")'
$ ls output/
PaxHeader
a_very_very_very_very_very_very_very_very_very_very_very_very_long_filename_longer_then_100_charact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment