#include "hashmap.h"
#include "strv.h"
#include "util.h"
+#include "conf-files.h"
static int delete_rule(const char *rule) {
char *x, *fn = NULL, *e;
assert(rule[0]);
if (!(x = strdup(rule)))
- return -ENOMEM;
+ return log_oom();
e = strchrnul(x+1, x[0]);
*e = 0;
free(x);
if (!fn)
- return -ENOMEM;
+ return log_oom();
r = write_one_line_file(fn, "-1");
free(fn);
} else {
char **files, **f;
- r = conf_files_list(&files, ".conf",
+ r = conf_files_list(&files, ".conf", NULL,
"/etc/binfmt.d",
"/run/binfmt.d",
"/usr/local/lib/binfmt.d",