blob: 236aa4b609268bd49f11796aadd926c677890c8d [file] [log] [blame]
diff -Nru oops-1.5.23.orig/src/rotate_logs.c oops-1.5.23/src/rotate_logs.c
--- oops-1.5.23.orig/src/rotate_logs.c 2001-08-31 15:30:30.000000000 +0200
+++ oops-1.5.23/src/rotate_logs.c 2009-07-12 12:47:56.000000000 +0200
@@ -32,7 +32,7 @@
if ( !num ) {
/* if no number of logs configured just reopen file */
close(fb->fd);
- fb->fd = open(name, O_WRONLY|O_APPEND|O_CREAT);
+ fb->fd = open(name, O_WRONLY|O_APPEND|O_CREAT, 0660);
return;
}