chiark / gitweb /
fileio: in envfiles, do not skip lines following empty lines
[elogind.git] / src / modules-load / modules-load.c
index 28b53ec7a3b71a1d7d151ed9f54f2cb7d0fdcba9..b3f7af0ef84a3efe718ef7a3e72d71b89638d96b 100644 (file)
@@ -148,7 +148,7 @@ static int load_module(struct kmod_ctx *ctx, const char *m) {
                         break;
 
                 case KMOD_MODULE_LIVE:
-                        log_info("Module '%s' is already loaded", kmod_module_get_name(mod));
+                        log_debug("Module '%s' is already loaded", kmod_module_get_name(mod));
                         break;
 
                 default:
@@ -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);