diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-11 22:37:04 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-11 22:37:04 +0000 |
commit | 48b5b163fcb6dbf20402ae319114583d00a77805 (patch) | |
tree | d930406e778dacb3eac3a5b6efbbb08fc72454d5 /lib/tmpdir.rb | |
parent | bcb9e567c422f535b4871ce2795179af808d0077 (diff) |
* 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
Diffstat (limited to 'lib/tmpdir.rb')
-rw-r--r-- | lib/tmpdir.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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, <i>prefix_suffix</i>. @@ -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) |