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