From de75c75b155929caa96d93610434593cc0ed829a Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 17 Nov 2021 20:00:28 -0800 Subject: [PATCH] Record file we added to in the structure --- dovecot/dovecot-lib.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/dovecot/dovecot-lib.pl b/dovecot/dovecot-lib.pl index 692f5e768..594a8ad76 100755 --- a/dovecot/dovecot-lib.pl +++ b/dovecot/dovecot-lib.pl @@ -352,6 +352,7 @@ splice(@$lref, $section->{'line'}, 0, @newlines); &renumber($conf, $section->{'eline'}, $section->{'file'}, scalar(@newlines)-$oldlen); $section->{'eline'} = $section->{'line'} + scalar(@newlines) - 1; +$section->{'file'} = $file; my $i = 1; foreach my $m (@{$section->{'members'}}) { $m->{'line'} = $m->{'eline'} = $section->{'line'} + $i++;