From bfd6c282af62d5d3d3df2c9dfc6a93ad375e1deb Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 23 Jun 2012 15:54:32 +0000 Subject: [PATCH] config: Don't change the HOOK variable when sourcing a configuration file. --- functions.zone | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions.zone b/functions.zone index 63cc37df..6c1874e3 100644 --- a/functions.zone +++ b/functions.zone @@ -694,7 +694,13 @@ function zone_config_read() { assert isset zone + # Save the HOOK variable. + local hook="${HOOK}" + config_read $(zone_file ${zone}) + + # Restore hook. + HOOK="${hook}" } function zone_config_write() { -- 2.47.3