chiark / gitweb /
fileio: in envfiles, do not skip lines following empty lines
[elogind.git] / src / modules-load / modules-load.c
index 9ee260302e123602226ee0beacfd94e8ed79c187..b3f7af0ef84a3efe718ef7a3e72d71b89638d96b 100644 (file)
@@ -206,7 +206,7 @@ static int apply_file(struct kmod_ctx *ctx, const char *path, bool ignore_enoent
                 l = strstrip(line);
                 if (!*l)
                         continue;
-                if (strchr(COMMENTS, *l))
+                if (strchr(COMMENTS "\n", *l))
                         continue;
 
                 k = load_module(ctx, l);