summaryrefslogtreecommitdiffstats
path: root/tools/scripts/generate-privdefs.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-11 19:17:56 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-11 19:17:56 +0545
commit97bc6c7868b4e6c7c04d7328de656190251bc012 (patch)
treef7678b351d91691df929693445bd2022768e253f /tools/scripts/generate-privdefs.php
parent941939ee1fbf588395604f0c2805a0f3d4c30231 (diff)
downloadpfsense-97bc6c7868b4e6c7c04d7328de656190251bc012.zip
pfsense-97bc6c7868b4e6c7c04d7328de656190251bc012.tar.gz
Random stuff in tools folder tree
White space and text or comment typos only - nothing functional.
Diffstat (limited to 'tools/scripts/generate-privdefs.php')
-rwxr-xr-xtools/scripts/generate-privdefs.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/scripts/generate-privdefs.php b/tools/scripts/generate-privdefs.php
index fb1f09b..553be1e 100755
--- a/tools/scripts/generate-privdefs.php
+++ b/tools/scripts/generate-privdefs.php
@@ -100,7 +100,7 @@ foreach ($found as $fname)
echo "--Generating privilege definitions--\n";
$privdef = $prefix."etc/inc/priv.defs.inc";
-$fp = fopen($privdef,"w");
+$fp = fopen($privdef, "w");
if (!$fp) {
echo "unable to open {$privdef}\n";
exit -2;
@@ -196,7 +196,7 @@ echo "--Checking for pages without privilege definitions--\n";
foreach ($found as $fname) {
$match = false;
foreach ($pages_current as $pname => $pdesc) {
- if (!strcmp($pname,$fname)) {
+ if (!strcmp($pname, $fname)) {
$match = true;
break;
}
@@ -210,7 +210,7 @@ echo "--Checking for stale privilege definitions--\n";
foreach ($pages_current as $pname => $pdesc) {
$match = false;
foreach ($found as $fname) {
- if (!strncmp($fname,$pname,strlen($fname))) {
+ if (!strncmp($fname, $pname, strlen($fname))) {
$match = true;
break;
}
OpenPOWER on IntegriCloud