summaryrefslogtreecommitdiffstats
path: root/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-08-01 07:26:46 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-08-01 07:26:46 +0000
commit0eab6e11e94df082d6b7a791648dc367c2c16dc6 (patch)
tree96a6f14603f56bc9272a3b45ef8923ee1a692d23 /omfile.c
parent4922cc646964e7a129b3cfab8873382425271664 (diff)
downloadrsyslog-0eab6e11e94df082d6b7a791648dc367c2c16dc6.tar.gz
rsyslog-0eab6e11e94df082d6b7a791648dc367c2c16dc6.tar.xz
rsyslog-0eab6e11e94df082d6b7a791648dc367c2c16dc6.zip
- loading default values as done yesterday *is* clean (I've just reviewed
the code again) - moved omfile-specifc global variables (for cfsysline settings) from syslogd.c to omfile.c
Diffstat (limited to 'omfile.c')
-rw-r--r--omfile.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/omfile.c b/omfile.c
index e1bba987..5c45f58d 100644
--- a/omfile.c
+++ b/omfile.c
@@ -56,6 +56,18 @@
*/
DEF_OMOD_STATIC_DATA
+/* 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 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 */
+static uid_t dirUID; /* UID to be used for newly created directories */
+static uid_t dirGID; /* GID to be used for newly created directories */
+static int bCreateDirs; /* auto-create directories for dynaFiles: 0 - no, 1 - yes */
+/* end globals for default values */
+
typedef struct _instanceData {
char f_fname[MAXFNAME];/* file or template name (display only) */
short fd; /* file descriptor for (current) file */