summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-08 20:00:35 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-08 20:00:35 +0000
commit761858b179e2017f06e0cf20ebd06a6042642a7e (patch)
tree3fcc306a7204b2f9430068ff89da5a36ce0c2b27 /etc
parentfeed9f8a392545c18cb5742a8c4c0051dce7b4a0 (diff)
downloadpfsense-761858b179e2017f06e0cf20ebd06a6042642a7e.zip
pfsense-761858b179e2017f06e0cf20ebd06a6042642a7e.tar.gz
More var name fixes.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 197e957..6ee7072 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -90,7 +90,7 @@ function config_unlock() {
function lock($lock) {
global $g, $cfglckkeyconsumers;
- if (!$file)
+ if (!$lock)
die("WARNING: You must give a name as parameter to lock() function.");
if (!file_exists("{$g['tmp_path']}/{$lock}.lock"))
@touch("{$g['tmp_path']}/{$lock}.lock");
OpenPOWER on IntegriCloud