summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/syslogd.c b/syslogd.c
index c2224561..537df108 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -5094,37 +5094,25 @@ static rsRetVal cfline(char *line, register selector_t *f)
case '@':
parseSelectorActFwd(&p, f);
break;
-
case '$':
case '?':
case '|':
case '/':
parseSelectorActFile(&p, f);
break;
-
case '*':
parseSelectorActUsrMsg(&p, f);
break;
-
case '~': /* rgerhards 2005-09-09: added support for discard */
dprintf ("discard\n");
f->f_type = F_DISCARD;
break;
-
case '>':
parseSelectorActMySQL(&p, f);
break;
-
case '^': /* bkalkbrenner 2005-09-20: execute shell command */
- dprintf("exec\n");
- ++p;
- cflineParseFileName(f, p);
- if (f->f_type == F_FILE) {
- f->f_type = F_SHELL;
- f->doAction = doActionShell;
- }
+ parseSelectorActShell(&p, f);
break;
-
default:
parseSelectorActUsrMsg(&p, f);
}