From ccd426e0da2c5612d50f90abe140dcf7c5631748 Mon Sep 17 00:00:00 2001
From: Rainer Gerhards
Date: Tue, 14 Apr 2009 15:36:23 +0200
Subject: prepared for 2.0.7 & corrected default for $DirCreatemode
bugfix: the default for $DirCreateMode was 0644, and as such wrong.
It has now been changed to 0700. For some background, please see
http://lists.adiscon.net/pipermail/rsyslog/2009-April/001986.html
---
ChangeLog | 5 ++++-
configure.ac | 2 +-
doc/manual.html | 2 +-
omfile.c | 4 ++--
4 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6e36531d..f6eb0dac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
---------------------------------------------------------------------------
-Version 2.0.7 V2-STABLE (rgerhards), 2008-??-??
+Version 2.0.7 V2-STABLE (rgerhards), 2008-04-14
+- bugfix: the default for $DirCreateMode was 0644, and as such wrong.
+ It has now been changed to 0700. For some background, please see
+ http://lists.adiscon.net/pipermail/rsyslog/2009-April/001986.html
- bugfix: "$CreateDirs off" also disabled file creation
Thanks to William Tisater for analyzing this bug and providing a patch.
The actual code change is heavily based on William's patch.
diff --git a/configure.ac b/configure.ac
index 14fb086c..27f9f9bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
-AC_INIT([rsyslog],[2.0.6],[rsyslog@lists.adiscon.com.])
+AC_INIT([rsyslog],[2.0.7],[rsyslog@lists.adiscon.com.])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([syslogd.c])
AC_CONFIG_HEADERS([config.h])
diff --git a/doc/manual.html b/doc/manual.html
index ce874fce..245d1ae8 100644
--- a/doc/manual.html
+++ b/doc/manual.html
@@ -31,7 +31,7 @@ relay chains while at the same time being very easy to setup
for the novice user. And as we know what enterprise users really need, there is also professional rsyslog support available directly from the source!
-This documentation is for version 2.0.6 of rsyslog.
+
This documentation is for version 2.0.7 of rsyslog.
Visit the rsyslog status page to obtain current
version information and project status.
diff --git a/omfile.c b/omfile.c
index 7c1ab4f3..23e9733c 100644
--- a/omfile.c
+++ b/omfile.c
@@ -69,7 +69,7 @@ typedef struct s_dynaFileCacheEntry dynaFileCacheEntry;
/* globals for default values */
static int iDynaFileCacheSize = 10; /* max cache for dynamic files */
static int fCreateMode = 0644; /* mode to use when creating files */
-static int fDirCreateMode = 0644; /* mode to use when creating files */
+static int fDirCreateMode = 0700; /* mode to use when creating files */
static int bFailOnChown; /* fail if chown fails? */
static uid_t fileUID; /* UID to be used for newly created files */
static uid_t fileGID; /* GID to be used for newly created files */
@@ -794,7 +794,7 @@ static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __a
bFailOnChown = 1;
iDynaFileCacheSize = 10;
fCreateMode = 0644;
- fDirCreateMode = 0644;
+ fDirCreateMode = 0700;
bCreateDirs = 1;
return RS_RET_OK;
--
cgit v1.2.3