Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 6527a2ef222562e2ba6a13098ca50c49 > files > 4

snort-2.8.3-1mdv2009.0.src.rpm

--- src/preprocessors/flow/portscan/server_stats.c	2008-02-25 14:27:49.000000000 -0500
+++ src/preprocessors/flow/portscan/server_stats.c.oden	2008-06-22 10:41:37.000000000 -0400
@@ -346,7 +346,7 @@ int server_stats_save(SERVER_STATS *ssp,
 
     /* open this description, create it if necessary, always wait on
      * sync to disk w/ every write, only write */
-    fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY);
+    fd = open(filename, O_CREAT, S_IRUSR|S_IWUSR|O_TRUNC|O_SYNC|O_WRONLY);
 
     if(fd < 0)
     {