Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Properly identify POSIX uncompressed tars #12011

Closed
wants to merge 1 commit into from

Conversation

RuiPereira
Copy link
Contributor

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

uncompressed tars (257 bytes offset), so changed
the magic_bytes to read the first 262 bytes.
@adamv adamv closed this in 19ed253 May 4, 2012
rohansingh pushed a commit to rohansingh/homebrew that referenced this pull request May 7, 2012
Sharpie pushed a commit to Sharpie/homebrew that referenced this pull request Jun 18, 2012
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request Dec 17, 2012
@Homebrew Homebrew 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.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants