Properly identify POSIX uncompressed tars #12011

Closed
wants to merge 1 commit into from

2 participants

@RuiPereira

The first 6 bytes are not enough to identify POSIX
uncompressed tars (257 bytes offset), so changed
the magic_bytes to read the first 262 bytes.

This is almost the same as #10226. Can be tested with a POSIX tar with this (dummy) formula:

require 'formula'

class SrbClient < Formula
  homepage 'http://www.sdsc.edu/srb/index.php'
  url 'http://www.sdsc.edu/srb/tarfiles/SRB3_4_2client.tar'
  md5 'cb42947abbabd7677ef4c960fc2ce2be'
  version '3.4.2'

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking"
  end
end
@adamv adamv was assigned May 2, 2012
@RuiPereira RuiPereira The first 6 bytes are not enough to identify POSIX
uncompressed tars (257 bytes offset), so changed
the magic_bytes to read the first 262 bytes.
9d57b92
@adamv adamv added a commit that closed this pull request May 4, 2012
@adamv adamv Detect uncompressed tars
From a patch by @RuiPereira

Closes #12011.
19ed253
@adamv adamv closed this in 19ed253 May 4, 2012
@rohansingh rohansingh added a commit to rohansingh/homebrew that referenced this pull request May 7, 2012
@adamv adamv Detect uncompressed tars
From a patch by @RuiPereira

Closes #12011.
9868878
@Sharpie Sharpie pushed a commit to Sharpie/homebrew that referenced this pull request Jun 18, 2012
@adamv adamv Detect uncompressed tars
From a patch by @RuiPereira

Closes #12011.
8489ad5
@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request Dec 17, 2012
@adamv adamv Detect uncompressed tars
From a patch by @RuiPereira

Closes #12011.
ccada4d
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.