Skip to content

Commit

Permalink
Windows symlink detection attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
halostatue committed Nov 14, 2016
1 parent e25205e commit 5e9f6dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ mime_version =
end

gem 'mime-types', "~> #{mime_version}"
gem 'win32-file', '~> 0.8', platforms: :mswin

gemspec :name => 'minitar'

Expand Down
2 changes: 1 addition & 1 deletion test/test_tar_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_extract_entry_works
end

def test_extract_entry_breaks_symlinks
return if Minitar.windows?
return if Minitar.windows? && !defined?(Windows::File::Functions)

IO.write('data__/file4', '')
File.symlink('data__/file4', 'data__/file3')
Expand Down

0 comments on commit 5e9f6dc

Please sign in to comment.