fileio: in envfiles, do not skip lines following empty lines

https://bugs.freedesktop.org/show_bug.cgi?id=63477
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-04-13 20:24:39 -04:00
parent 7914d6bba4
commit d3b6d0c21e
8 changed files with 38 additions and 7 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ static int parse_file(Hashmap *sysctl_options, const char *path, bool ignore_eno
if (!*p)
continue;
if (strchr(COMMENTS, *p))
if (strchr(COMMENTS "\n", *p))
continue;
value = strchr(p, '=');