mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
if a file was deleted, subsequent files were not properly renamed
because $deletefile was left true
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||||
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
# $Id: sanitize.pl,v 1.8 2000/09/27 18:00:38 mws Exp $
|
# $Id: sanitize.pl,v 1.9 2000/09/28 17:35:19 gson Exp $
|
||||||
|
|
||||||
# Don't try and sanitize this file: NOMINUM_IGNORE
|
# Don't try and sanitize this file: NOMINUM_IGNORE
|
||||||
|
|
||||||
@@ -45,7 +45,6 @@
|
|||||||
|
|
||||||
$makechange = 1;
|
$makechange = 1;
|
||||||
$debug = 0;
|
$debug = 0;
|
||||||
$deletefile = 0;
|
|
||||||
$curkey = 0;
|
$curkey = 0;
|
||||||
|
|
||||||
# States:
|
# States:
|
||||||
@@ -86,6 +85,8 @@ exit(0);
|
|||||||
|
|
||||||
sub runfile($) {
|
sub runfile($) {
|
||||||
$state = 0;
|
$state = 0;
|
||||||
|
$deletefile = 0;
|
||||||
|
|
||||||
open(INFILE, $_[0]) || die ("$_[0]");
|
open(INFILE, $_[0]) || die ("$_[0]");
|
||||||
open(OUTFILE, ">$_[1]") || die ("$_[1]")
|
open(OUTFILE, ">$_[1]") || die ("$_[1]")
|
||||||
if ($makechange);
|
if ($makechange);
|
||||||
|
Reference in New Issue
Block a user