$NetBSD: patch-aq,v 1.1 2004/08/24 15:43:56 taca Exp $

--- lib/cgi/session.rb.orig	2002-05-01 18:36:28.000000000 +0900
+++ lib/cgi/session.rb
@@ -116,7 +116,7 @@ class CGI
 	begin
 	  @f = open(path, "r+")
 	rescue Errno::ENOENT
-	  @f = open(path, "w+")
+	  @f = File.open(path, File::CREAT|File::RDWR, 0600)
 	end
       end
 
