Sha256: 333976230a678d054bd6d71c1ca1de8bd51e53eb2cb4b6ffcba79a27f4099370

Contents?: true

Size: 370 Bytes

Versions: 21

Compression:

Stored size: 370 Bytes

Contents

# Based on 'relative2' in https://github.com/jwilk/path-traversal-samples,
# but create the local `tmp` folder before adding the symlink. Otherwise
# we may bail out before we get to trying to create the file.
all: relative1.zip
relative1.zip:
	rm -f $(@)
	mkdir -p -m 755 tmp/tmp
	umask 022 && echo moo > moo
	cd tmp && zip -X ../$(@) tmp tmp/../../moo
	rm -rf tmp moo

Version data entries

21 entries across 17 versions & 3 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/rubyzip-1.3.0/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.3/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/Makefile
rubyzip-1.3.0 test/data/path_traversal/Makefile
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
rubyzip-1.2.4 test/data/path_traversal/Makefile
rubyzip-1.2.3 test/data/path_traversal/Makefile
tdiary-5.0.13 vendor/bundle/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
tdiary-5.0.12.1 vendor/bundle/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
tdiary-5.0.11 vendor/bundle/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/rubyzip-1.2.2/test/data/path_traversal/Makefile