diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 19729f478d..b20439b6f4 100644 --- a/daemon/libvirtd.c +++ b/daemon/libvirtd.c @@ -1383,6 +1383,12 @@ int main(int argc, char **argv) { } } + if (optind != argc) { + fprintf(stderr, "%s: unexpected, non-option, command line arguments\n", + argv[0]); + exit(EXIT_FAILURE); + } + if (!(config = daemonConfigNew(privileged))) { VIR_ERROR(_("Can't create initial configuration")); exit(EXIT_FAILURE);