From 70ca520f43d8cd3f9c6895d20ec87498b626bd75 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 7 Nov 2010 23:03:42 -0500 Subject: [PATCH] modules-load: fix minor race --- src/modules-load.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5