summaryrefslogtreecommitdiffstats
path: root/tools/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-16 14:59:04 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-16 14:59:04 +0200
commitf07d74a87f91b6fe2f5091ec2547b7886ab3a23e (patch)
tree7477eed4aac75e44e700f25fdd59bf1e9a56e95e /tools/omfile.c
parentba5a59128f6559d58cdd4defe46a9db564d3e2c1 (diff)
parent5ccec36e8d69230ddbd94d1b63bc9f6518c5ade8 (diff)
downloadrsyslog-f07d74a87f91b6fe2f5091ec2547b7886ab3a23e.tar.gz
rsyslog-f07d74a87f91b6fe2f5091ec2547b7886ab3a23e.tar.xz
rsyslog-f07d74a87f91b6fe2f5091ec2547b7886ab3a23e.zip
Merge branch 'master' into nextmaster
Diffstat (limited to 'tools/omfile.c')
-rw-r--r--tools/omfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index 36f160d1..c7283e4d 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -78,7 +78,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 */
@@ -847,7 +847,7 @@ static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __a
bFailOnChown = 1;
iDynaFileCacheSize = 10;
fCreateMode = 0644;
- fDirCreateMode = 0644;
+ fDirCreateMode = 0700;
bCreateDirs = 1;
bEnableSync = 0;
if(pszTplName != NULL) {