From: Lennart Poettering Date: Fri, 23 Dec 2016 23:30:49 +0000 (+0100) Subject: run: complain when --pty is used together with --no-block, which makes no sense X-Git-Tag: v233~171^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=578c03bce0816b21f00e4ef9734e5c1c1a63dcc6;p=thirdparty%2Fsystemd.git run: complain when --pty is used together with --no-block, which makes no sense --- diff --git a/src/run/run.c b/src/run/run.c index 3e3116f2355..df3b47af29e 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -403,6 +403,11 @@ static int parse_argv(int argc, char *argv[]) { return -EINVAL; } + if (arg_pty && arg_no_block) { + log_error("--pty is not compatible with --no-block."); + return -EINVAL; + } + if (arg_scope && with_timer()) { log_error("Timer options are not supported in --scope mode."); return -EINVAL;