+ return endswith(d->d_name, ".conf");
+}
+
+static int apply_tree(const char *path) {
+ struct dirent **de = NULL;
+ int n, i, r = 0;
+
+ if ((n = scandir(path, &de, scandir_filter, alphasort)) < 0) {
+
+ if (errno == ENOENT)
+ return 0;
+
+ log_error("Failed to enumerate %s files: %m", path);
+ return -errno;
+ }
+
+ for (i = 0; i < n; i++) {
+ char *fn;
+ int k;