From 48b5b163fcb6dbf20402ae319114583d00a77805 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 11 Mar 2012 22:37:04 +0000 Subject: * lib/tmpdir.rb: update document for changing FileUtils.remove_entry_secure to FileUtils.remove_entry. * NEWS: add incompatiblity note for lib/tmpdir.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tmpdir.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb index 0791c38746..37af025065 100644 --- a/lib/tmpdir.rb +++ b/lib/tmpdir.rb @@ -36,6 +36,7 @@ class Dir # Dir.mktmpdir creates a temporary directory. # # The directory is created with 0700 permission. + # Application should not change the permission to make the temporary directory accesible from other users. # # The prefix and suffix of the name of the directory is specified by # the optional first argument, prefix_suffix. @@ -56,7 +57,7 @@ class Dir # If a block is given, # it is yielded with the path of the directory. # The directory and its contents are removed - # using FileUtils.remove_entry_secure before Dir.mktmpdir returns. + # using FileUtils.remove_entry before Dir.mktmpdir returns. # The value of the block is returned. # # Dir.mktmpdir {|dir| @@ -74,7 +75,7 @@ class Dir # open("#{dir}/foo", "w") { ... } # ensure # # remove the directory. - # FileUtils.remove_entry_secure dir + # FileUtils.remove_entry dir # end # def Dir.mktmpdir(prefix_suffix=nil, *rest) -- cgit v1.2.3