aboutsummaryrefslogtreecommitdiffstats
path: root/config/systempatches/patches.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-07 11:55:22 -0400
committerjim-p <jimp@pfsense.org>2012-05-07 11:55:22 -0400
commitfab7a944a4c297f061d338a8626bff9a6e53a038 (patch)
tree0ed5a89860dc489ac71af16e3eca5819c02a439b /config/systempatches/patches.inc
parent86c4dc3d986c75c74df3d72fd081383589f480f8 (diff)
downloadpfsense-packages-fab7a944a4c297f061d338a8626bff9a6e53a038.tar.gz
pfsense-packages-fab7a944a4c297f061d338a8626bff9a6e53a038.tar.bz2
pfsense-packages-fab7a944a4c297f061d338a8626bff9a6e53a038.zip
Fix the name of this field/var to more accurately reflect what it does.
Diffstat (limited to 'config/systempatches/patches.inc')
-rw-r--r--config/systempatches/patches.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/systempatches/patches.inc b/config/systempatches/patches.inc
index 8dd78fd9..971b9da3 100644
--- a/config/systempatches/patches.inc
+++ b/config/systempatches/patches.inc
@@ -41,9 +41,9 @@ function patch_commit($patch, $action, $test=false) {
$force = ($action == "revert") ? "-f" : "-t";
$direction = ($action == "revert") ? "--reverse" : "--forward";
$whitespace = $patch['ignorewhitespace'] ? "--ignore-whitespace" : "";
- $patchlevel = '-p' . $patch['patchlevel'];
+ $pathstrip = '-p' . $patch['pathstrip'];
patch_write($patch);
- $status = mwexec("{$patch_cmd} {$force} {$patchlevel} {$filename} {$check} {$direction} {$whitespace}", false);
+ $status = mwexec("{$patch_cmd} {$force} {$pathstrip} {$filename} {$check} {$direction} {$whitespace}", false);
patch_erase($patch);
if ($status == 0)
return true;