From: Ben Pfaff Date: Fri, 15 May 2009 19:59:35 +0000 (-0700) Subject: ovs-cfg-mod: Accept -v option before any targets are specified. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=509e79607dc2fc245052d05d8a8853522644dec3;p=openvswitch ovs-cfg-mod: Accept -v option before any targets are specified. Setting the log levels should be allowed before specifying targets, but it wasn't. This fixes it. This fixes a failure to bring up network interfaces at boot (and at any other time too). --- diff --git a/utilities/ovs-cfg-mod.c b/utilities/ovs-cfg-mod.c index b09a7ced..03ee3708 100644 --- a/utilities/ovs-cfg-mod.c +++ b/utilities/ovs-cfg-mod.c @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) break; } - if ((option > UCHAR_MAX || !strchr("Fh?", option)) + if ((option > UCHAR_MAX || !strchr("Fhv?", option)) && config_set == false) { ovs_fatal(0, "no config file specified (use --help for help)"); }