X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fexecuter.c;h=b78b0df09714bcf7f8026f490887d62d13c2f3b4;hb=84f7e9b6d0f8730f4b470ffdc339b0e66dcd958e;hp=bc42ccf8693561bec579cb7832ee591dcff587b4;hpb=baa905d36b831881ceb20686f567dead3ec0bf14;p=sliver-openvswitch.git diff --git a/ofproto/executer.c b/ofproto/executer.c index bc42ccf86..b78b0df09 100644 --- a/ofproto/executer.c +++ b/ofproto/executer.c @@ -508,5 +508,7 @@ executer_set_acl(struct executer *e, const char *acl, const char *dir) free(e->command_acl); e->command_acl = xstrdup(acl); free(e->command_dir); - e->command_dir = xstrdup(dir); + e->command_dir = (dir + ? xstrdup(dir) + : xasprintf("%s/commands", ovs_pkgdatadir)); }