diff options
author | Daniel Mack <github@zonque.org> | 2016-03-18 12:00:29 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2016-03-18 12:00:29 +0100 |
commit | af6cd87d986312963873afd0262e710d49ac0f5a (patch) | |
tree | 9a8f89eb1edde7297a4273d8323dbfd70d5baa3d /src | |
parent | 6a692550f25b3143aa6acecb7adb265956b8387f (diff) | |
parent | 1c1ea217357c60ab2f57ea8f20d84166f641f49f (diff) |
Merge pull request #2862 from evverx/nspawn-expose-ports-error
nspawn: don't run nspawn --port=... without libiptc support
Diffstat (limited to 'src')
-rw-r--r-- | src/nspawn/nspawn.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index be07625a03..eb89916b7e 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -977,6 +977,13 @@ static int verify_arguments(void) { return -EINVAL; } +#ifndef HAVE_LIBIPTC + if (arg_expose_ports) { + log_error("--port= is not supported, compiled without libiptc support."); + return -EOPNOTSUPP; + } +#endif + if (arg_start_mode == START_BOOT && arg_kill_signal <= 0) arg_kill_signal = SIGRTMIN+3; |