]> err.no Git - systemd/commitdiff
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 a1738bb8b4f25e04d48b094830f1de41ec05a2f6..3e3ccb0c2f2f188b3939497b8d0b1db091b57aa1 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;