$OpenBSD: patch-lib_cgi_session_rb,v 1.1 2004/08/17 16:03:10 robert Exp $
--- lib/cgi/session.rb.orig	Tue Aug 17 02:31:13 2004
+++ lib/cgi/session.rb	Tue Aug 17 02:34:18 2004
@@ -372,7 +372,7 @@
 	begin
 	  @f = open(path, "r+")
 	rescue Errno::ENOENT
-	  @f = open(path, "w+")
+	  @f = File.open(path, File::CREAT|File::RDWR, 0600)
 	end
       end
 
