--- snort-2.6.1.4/src/preprocessors/flow/portscan/server_stats.c.orig 2006-05-24 18:06:57.000000000 +0200 +++ snort-2.6.1.4/src/preprocessors/flow/portscan/server_stats.c.orig 2009-03-01 07:57:10.000000000 +0100 @@ -325,7 +325,7 @@ /* 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|O_TRUNC|O_SYNC|O_WRONLY,S_IRWXU); if(fd < 0) {