aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-12 18:00:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-12 18:00:56 +0000
commit2259758674f6b5f3a93c274909a574ee8b2a50ee (patch)
treea449e5b038ab0fc55a834a7eb71969b806abf62f /packages
parent9f9d71887351f643472d2cf639f3485ed4680259 (diff)
downloadpfsense-packages-2259758674f6b5f3a93c274909a574ee8b2a50ee.tar.gz
pfsense-packages-2259758674f6b5f3a93c274909a574ee8b2a50ee.tar.bz2
pfsense-packages-2259758674f6b5f3a93c274909a574ee8b2a50ee.zip
Correct installation bug:
Warning: fopen(/service/tinydns/root/data): failed to open stream: No such file or directory in /usr/local/pkg/tinydns.inc on line 255
Diffstat (limited to 'packages')
-rw-r--r--packages/tinydns/tinydns.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 03e99e57..4cb6c316 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -253,7 +253,10 @@ function tinydns_create_zone_file() {
unlink("/tmp/config.cache");
parse_config(true);
config_lock();
- exec("rm -f /service/tinydns/root/data");
+ if(file_exists("/service/tinydns/root/data"))
+ exec("rm -f /service/tinydns/root/data");
+ if(!isdir("/service/tinydns/root"))
+ return;
$fd = fopen("/service/tinydns/root/data", "w");
if(!$fd) {
log_error("Could not open /service/tinydns/root/data for writing.");