1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Specify the permission

To make the temporary directory non-writable by group and others.
This commit is contained in:
Nobuyoshi Nakada 2019-11-09 22:40:14 +09:00
parent 774cfb0655
commit a68205c5c1
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -7,7 +7,7 @@ describe "CVE-2018-6914 is resisted by" do
before :each do
@tmpdir = ENV['TMPDIR']
@dir = tmp("CVE-2018-6914")
Dir.mkdir(@dir)
Dir.mkdir(@dir, 0700)
ENV['TMPDIR'] = @dir
# Make sure that ENV["TMPDIR"] is used by Dir.tmpdir