summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-14 15:36:23 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-14 15:36:23 +0200
commitccd426e0da2c5612d50f90abe140dcf7c5631748 (patch)
tree4a0d950c36a259088995b73f2390b41c69f9c572
parenta08ac7546fb3ff97e7cb7a8d5212eba159c112ec (diff)
downloadrsyslog-ccd426e0da2c5612d50f90abe140dcf7c5631748.tar.gz
rsyslog-ccd426e0da2c5612d50f90abe140dcf7c5631748.tar.xz
rsyslog-ccd426e0da2c5612d50f90abe140dcf7c5631748.zip
prepared for 2.0.7 & corrected default for $DirCreatemodev2.0.7
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
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac2
-rw-r--r--doc/manual.html2
-rw-r--r--omfile.c4
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 <a href="professional_support.html">professional rsyslog support</a> available directly from the source!</p>
-<p><b>This documentation is for version 2.0.6 of rsyslog.</b>
+<p><b>This documentation is for version 2.0.7 of rsyslog.</b>
Visit the <i> <a href="http://www.rsyslog.com/doc-status.html">rsyslog status page</a></i></b> to obtain current
version information and project status.</p>
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;