mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
4100. [bug] Inherited owernames on the line immediately following
a $INCLUDE were not working. [RT #39268]
This commit is contained in:
@@ -41,6 +41,7 @@ typedef struct inputsource {
|
||||
isc_boolean_t is_file;
|
||||
isc_boolean_t need_close;
|
||||
isc_boolean_t at_eof;
|
||||
isc_boolean_t last_was_eol;
|
||||
isc_buffer_t * pushback;
|
||||
unsigned int ignored;
|
||||
void * input;
|
||||
@@ -202,6 +203,7 @@ new_source(isc_lex_t *lex, isc_boolean_t is_file, isc_boolean_t need_close,
|
||||
source->is_file = is_file;
|
||||
source->need_close = need_close;
|
||||
source->at_eof = ISC_FALSE;
|
||||
source->last_was_eol = lex->last_was_eol;
|
||||
source->input = input;
|
||||
source->name = isc_mem_strdup(lex->mctx, name);
|
||||
if (source->name == NULL) {
|
||||
@@ -289,6 +291,7 @@ isc_lex_close(isc_lex_t *lex) {
|
||||
return (ISC_R_NOMORE);
|
||||
|
||||
ISC_LIST_UNLINK(lex->sources, source, link);
|
||||
lex->last_was_eol = source->last_was_eol;
|
||||
if (source->is_file) {
|
||||
if (source->need_close)
|
||||
(void)fclose((FILE *)(source->input));
|
||||
|
Reference in New Issue
Block a user