--- 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) {