зеркало из https://github.com/github/ruby.git
* lib/tempfile.rb: a tempfile must be created with mode 0600.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d59652ef25
Коммит
7f326a3988
|
@ -1,3 +1,7 @@
|
|||
Fri Jul 6 02:15:06 2001 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* lib/tempfile.rb: a tempfile must be created with mode 0600.
|
||||
|
||||
Wed Jul 4 04:22:44 2001 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/http.rb (HTTP#request_by_name): arg order changes.
|
||||
|
|
|
@ -55,7 +55,7 @@ class Tempfile < SimpleDelegator
|
|||
@clean_files = Tempfile.callback(tmpname, @protect)
|
||||
ObjectSpace.define_finalizer(self, @clean_files)
|
||||
|
||||
@tmpfile = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL)
|
||||
@tmpfile = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL, 0600)
|
||||
@protect[0] = @tmpfile
|
||||
@tmpname = tmpname
|
||||
super(@tmpfile)
|
||||
|
|
Загрузка…
Ссылка в новой задаче