summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.initial.password
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-06-27 14:30:14 +0930
committerChris Buechler <cmb@pfsense.org>2016-06-27 14:16:13 -0500
commitaceaf18c1ad93c808b77e0bbf324949d5d2eede0 (patch)
treecc34e086600b4a481586e35eb6142a1b46799679 /src/etc/rc.initial.password
parent9d265a8db874249ac16d4d02ce68463416f1aee2 (diff)
downloadpfsense-aceaf18c1ad93c808b77e0bbf324949d5d2eede0.zip
pfsense-aceaf18c1ad93c808b77e0bbf324949d5d2eede0.tar.gz
Always use require_once
The usage of require() and require_once() throughout the system is inconsistent, and "bugs" come up now and then when the order of "requires" is a bit different and some require() happens after the include file is already included/required. It seems to me that there is no harm at all in always using require_once().
Diffstat (limited to 'src/etc/rc.initial.password')
-rwxr-xr-xsrc/etc/rc.initial.password2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/rc.initial.password b/src/etc/rc.initial.password
index 969745b..b8a0e9b 100755
--- a/src/etc/rc.initial.password
+++ b/src/etc/rc.initial.password
@@ -32,7 +32,7 @@
/* parse the configuration and include all functions used below */
require_once("config.inc");
- require("auth.inc");
+ require_once("auth.inc");
require_once("functions.inc");
require_once("shaper.inc");
OpenPOWER on IntegriCloud