diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-01 07:26:46 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-01 07:26:46 +0000 |
commit | 0eab6e11e94df082d6b7a791648dc367c2c16dc6 (patch) | |
tree | 96a6f14603f56bc9272a3b45ef8923ee1a692d23 /omfile.c | |
parent | 4922cc646964e7a129b3cfab8873382425271664 (diff) | |
download | rsyslog-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.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 */ |