X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=ofproto%2Fexecuter.c;h=b78b0df09714bcf7f8026f490887d62d13c2f3b4;hb=70e7beba72bdc725cab33ba84f2052588e91f8df;hp=bc42ccf8693561bec579cb7832ee591dcff587b4;hpb=39fb08818bbd9c438dbf23caa89937c663451b5a;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)); }