Merge pull request #28079 from Geass-LL/comment

basic/env-file: also change to state PRE_KEY if we see NEWLINE in sta…
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-06-21 01:40:36 +02:00
committed by GitHub
3 changed files with 19 additions and 4 deletions
+7 -1
View File
@@ -243,7 +243,13 @@ static int parse_env_file_internal(
break;
case COMMENT_ESCAPE:
state = COMMENT;
log_debug("The line which doesn't begin with \";\" or \"#\", but follows a comment" \
" line trailing with escape is now treated as a non comment line since v254.");
if (strchr(NEWLINE, c)) {
state = PRE_KEY;
line++;
} else
state = COMMENT;
break;
}
}