zoneconf.in: Set up a temporary directory when signing.
[zoneconf] / zoneconf.in
index 137c2b5..541c019 100755 (executable)
@@ -1511,6 +1511,10 @@ defcmd sign {} {
   ## Read the configuration.
   isolate [list confspc-eval toplevel [list source $CONFFILE]]
 
+  ## Sometimes `dnssec-signzone' tries to write temporary files to the
+  ## current directory.  Make sure this is sensible.
+  temporary-directory
+
   ## Grind through all of the zones.
   array unset seen
   foreach view $ZONECFG(all-views) {