From 4b1e941a929e25c24e7c32288ed264e38acaf238 Mon Sep 17 00:00:00 2001 From: Nico Kaiser Date: Wed, 23 Apr 2014 13:26:24 +0200 Subject: [PATCH] Use sys_get_temp_dir() instead of "/tmp", thanks ALeX. Fixes #9 --- src/Dyndns/Hosts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dyndns/Hosts.php b/src/Dyndns/Hosts.php index 23dc32f..d448ed7 100644 --- a/src/Dyndns/Hosts.php +++ b/src/Dyndns/Hosts.php @@ -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'); -- 2.1.4