That way the vswitch can get the default without having to know it too.
#include <sys/wait.h>
#include <string.h>
#include <unistd.h>
+#include "dirs.h"
#include "dynamic-string.h"
#include "fatal-signal.h"
#include "openflow/nicira-ext.h"
e = xcalloc(1, sizeof *e);
e->command_acl = xstrdup(command_acl);
- e->command_dir = xstrdup(command_dir);
+ e->command_dir = (command_dir
+ ? xstrdup(command_dir)
+ : xasprintf("%s/commands", ofp_pkgdatadir));
e->n_children = 0;
*executerp = e;
return 0;
s->enable_stp = false;
s->in_band = true;
s->command_acl = "";
- s->command_dir = xasprintf("%s/commands", ofp_pkgdatadir);
+ s->command_dir = NULL;
for (;;) {
int error;
int c;