aboutsummaryrefslogtreecommitdiffstats
path: root/src/initlog.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-07-17 20:39:02 +0000
committerBill Nottingham <notting@redhat.com>2001-07-17 20:39:02 +0000
commitb0265341c2e47cbda3056570dd5533afdbccd036 (patch)
treec19c4f280dd3ae399665bc5ba810e68e141d1203 /src/initlog.c
parent90b0dd7dfdde3332444b55ac6bddef6c550fa80a (diff)
downloadinitscripts-b0265341c2e47cbda3056570dd5533afdbccd036.tar
initscripts-b0265341c2e47cbda3056570dd5533afdbccd036.tar.gz
initscripts-b0265341c2e47cbda3056570dd5533afdbccd036.tar.bz2
initscripts-b0265341c2e47cbda3056570dd5533afdbccd036.tar.xz
initscripts-b0265341c2e47cbda3056570dd5533afdbccd036.zip
don't allow --event to be used with --cmd/--run (#49203)
Diffstat (limited to 'src/initlog.c')
-rw-r--r--src/initlog.c5
1 files changed, 5 insertions, 0 deletions
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 {