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:
parent
774cfb0655
commit
a68205c5c1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue