From: Lennart Poettering Date: Mon, 8 Nov 2010 04:03:42 +0000 (-0500) Subject: modules-load: fix minor race X-Git-Tag: v12~73 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70ca520f43d8cd3f9c6895d20ec87498b626bd75;p=systemd modules-load: fix minor race --- diff --git a/src/modules-load.c b/src/modules-load.c index a1738bb8..3e3ccb0c 100644 --- a/src/modules-load.c +++ b/src/modules-load.c @@ -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;