summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-03-19 17:50:07 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-03-19 17:50:07 +0100
commitbbfa04fbe63f1bbb47f5cdc683045cf2775b3977 (patch)
tree1321c8edd1daede54d7b9680fc58ebd5cca1ead9 /runtime
parent790532bb834e3d4fc07273b2d72127e39ef3e142 (diff)
downloadrsyslog-bbfa04fbe63f1bbb47f5cdc683045cf2775b3977.tar.gz
rsyslog-bbfa04fbe63f1bbb47f5cdc683045cf2775b3977.tar.xz
rsyslog-bbfa04fbe63f1bbb47f5cdc683045cf2775b3977.zip
improved testing support
worked on ways to provide a better test suite: - added -T rsyslogd command line option, enables to specify a directory where to chroot() into on startup. This is NOT a security feature but introduced to support testing. Thus, -T does not make sure chroot() is used in a secure way. (may be removed later) - added omstdout module for testing purposes. Spits out all messages to stdout - no config option, no other features - modified $ModLoad statement so that for modules whom's name starts with a dot, no path is prepended (this enables relative-pathes and should not break any valid current config)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/modules.c b/runtime/modules.c
index d548a949..cef4eac6 100644
--- a/runtime/modules.c
+++ b/runtime/modules.c
@@ -608,7 +608,7 @@ Load(uchar *pModName)
iLoadCnt = 0;
do {
/* now build our load module name */
- if(*pModName == '/') {
+ if(*pModName == '/' || *pModName == '.') {
*szPath = '\0'; /* we do not need to append the path - its already in the module name */
iPathLen = 0;
} else {