chiark / gitweb /
analyze: add plotter
[elogind.git] / src / modules-load.c
index a1738bb8b4f25e04d48b094830f1de41ec05a2f6..2dd432695f5f4c028264cd111b5f5912cfcbb567 100644 (file)
@@ -43,7 +43,8 @@ static int scandir_filter(const struct dirent *d) {
                 return 0;
 
         if (d->d_type != DT_REG &&
-            d->d_type != DT_LNK)
+            d->d_type != DT_LNK &&
+            d->d_type != DT_UNKNOWN)
                 return 0;
 
         return endswith(d->d_name, ".conf");
@@ -101,6 +102,9 @@ int main(int argc, char *argv[]) {
                 free(fn);
 
                 if (!f) {
+                        if (errno == ENOENT)
+                                continue;
+
                         log_error("Failed to open %s: %m", fn);
                         r = EXIT_FAILURE;
                         continue;