chiark / gitweb /
modules-load: fix minor race
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Nov 2010 04:03:42 +0000 (23:03 -0500)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Nov 2010 21:38:43 +0000 (22:38 +0100)
src/modules-load.c

index a1738bb..3e3ccb0 100644 (file)
@@ -101,6 +101,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;