Skip to content

Commit d63a2c6

Browse files
author
matz
committed
* cgi/session.rb: FileStore data should be umasked 0600.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@6701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent be8d0c6 commit d63a2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cgi/session.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def initialize(session, option={})
116116
begin
117117
@f = open(path, "r+")
118118
rescue Errno::ENOENT
119-
@f = open(path, "w+")
119+
@f = File.open(@path, File::CREAT|File::RDWR, 0600)
120120
end
121121
end
122122

0 commit comments

Comments
 (0)