Use sys_get_temp_dir() instead of "/tmp", thanks ALeX. Fixes #9
authorNico Kaiser <nico.kaiser@boerse-go.de>
Wed, 23 Apr 2014 11:26:24 +0000 (13:26 +0200)
committerNico Kaiser <nico.kaiser@boerse-go.de>
Wed, 23 Apr 2014 11:26:24 +0000 (13:26 +0200)
src/Dyndns/Hosts.php

index 23dc32f..d448ed7 100644 (file)
@@ -162,7 +162,7 @@ class Hosts
         }
 
         // create temp file with nsupdate commands
-        $tempfile = tempnam('/tmp', 'Dyndns');
+        $tempfile = tempnam(sys_get_temp_dir(), 'Dyndns');
         $fh = @fopen($tempfile, 'w');
         if (! $fh) {
             $this->debug('ERROR: Could not open temporary file');