summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-03-12 16:26:01 +0000
committerErmal <eri@pfsense.org>2012-03-12 16:26:01 +0000
commit966f359e02f97371006416b79548e311ca6556ca (patch)
tree3741c045937aedae20504e3ee8dbf763c146706f
parent4aa0979fbc3a860c8182a14da6a1d218f55cf336 (diff)
downloadpfsense-966f359e02f97371006416b79548e311ca6556ca.zip
pfsense-966f359e02f97371006416b79548e311ca6556ca.tar.gz
An empty file is created so that the table is availblke for rules refrencing it so mark it as successful.
-rw-r--r--etc/inc/pfsense-utils.inc7
1 files changed, 1 insertions, 6 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index b25b3fd..7d5b458 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1852,12 +1852,7 @@ function process_alias_urltable($name, $url, $freq, $forceupdate=false) {
} else
mwexec("/usr/bin/touch {$urltable_filename}");
conf_mount_ro();
- if (filesize($urltable_filename)) {
- return true;
- } else {
- // If it's unfetchable or an empty file, bail
- return false;
- }
+ return true;
} else {
// File exists, and it doesn't need updated.
return -1;
OpenPOWER on IntegriCloud