projects
/
Dyndns
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8471fd5
)
Use sys_get_temp_dir() instead of "/tmp", thanks ALeX. Fixes #9
author
Nico Kaiser
<nico.kaiser@boerse-go.de>
Wed, 23 Apr 2014 11:26:24 +0000
(13:26 +0200)
committer
Nico Kaiser
<nico.kaiser@boerse-go.de>
Wed, 23 Apr 2014 11:26:24 +0000
(13:26 +0200)
src/Dyndns/Hosts.php
patch
|
blob
|
history
diff --git
a/src/Dyndns/Hosts.php
b/src/Dyndns/Hosts.php
index
23dc32f
..
d448ed7
100644
(file)
--- 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');