summaryrefslogtreecommitdiffstats
path: root/omfile.c
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 /omfile.c
parenta08ac7546fb3ff97e7cb7a8d5212eba159c112ec (diff)
downloadrsyslog-ccd426e0da2c5612d50f90abe140dcf7c5631748.tar.gz
rsyslog-ccd426e0da2c5612d50f90abe140dcf7c5631748.tar.bz2
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
Diffstat (limited to 'omfile.c')
-rw-r--r--omfile.c4
1 files changed, 2 insertions, 2 deletions
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;