summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-09 22:40:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-09 22:40:14 +0900
commita68205c5c19277e9ece8409b1f6af7e226989dff (patch)
treeb31d76396b93dd2848428f12dfbb179ae28b8871 /spec
parent774cfb065567d07c4cf172cbb1708acda5e0fde4 (diff)
Specify the permission
To make the temporary directory non-writable by group and others.
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/security/cve_2018_6914_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/security/cve_2018_6914_spec.rb b/spec/ruby/security/cve_2018_6914_spec.rb
index 997f4c548a..f1bd2c6b81 100644
--- a/spec/ruby/security/cve_2018_6914_spec.rb
+++ b/spec/ruby/security/cve_2018_6914_spec.rb
@@ -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