New test mode that allows run_parts to fail silently if the directory

is not found. Patch from Bastian Blank
This commit is contained in:
Glenn L McGrath
2003-01-20 23:50:59 +00:00
parent aad465efb7
commit 2e51a14d57
3 changed files with 14 additions and 9 deletions

View File

@ -1010,7 +1010,7 @@ static int execute_all(interface_defn_t *ifd, execfn *exec, const char *opt)
buf = xmalloc(xstrlen(opt) + 19);
sprintf(buf, "/etc/network/if-%s.d", opt);
run_parts(&buf, 0);
run_parts(&buf, 2);
free(buf);
return (1);
}