zoneconf.in: Set up a temporary directory when signing. master
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 Mar 2015 02:09:27 +0000 (02:09 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 26 Mar 2015 02:15:15 +0000 (02:15 +0000)
Apparently it's needed sometimes.

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) {