From b0265341c2e47cbda3056570dd5533afdbccd036 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 17 Jul 2001 20:39:02 +0000 Subject: don't allow --event to be used with --cmd/--run (#49203) --- src/initlog.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/initlog.c') diff --git a/src/initlog.c b/src/initlog.c index 5905e16c..39579eeb 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -413,6 +413,11 @@ int processArgs(int argc, char **argv, int silent) { fprintf(stderr, _("--name requires one of --event or --string\n")); return -1; } + if (cmdevent && cmd) { + if (!silent) + fprintf(stderr, _("--cmd and --run are incompatible with --event\n")); + return -1; + } if (conffile) { readConfiguration(conffile); } else { -- cgit v1.2.1