aboutsummaryrefslogtreecommitdiffstats
path: root/config/packetcapturefix/packetcapturefix.patch
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-05-19 08:43:10 -0400
committerjim-p <jimp@pfsense.org>2010-05-19 08:43:10 -0400
commita2f538d3dce281e3b17202637161ead8937bb942 (patch)
tree425af59a2f96d8eff27f962ea717ed0cea315fa7 /config/packetcapturefix/packetcapturefix.patch
parent1c7267a22f0d3f85814b5a49005e27a534dd3568 (diff)
downloadpfsense-packages-a2f538d3dce281e3b17202637161ead8937bb942.tar.gz
pfsense-packages-a2f538d3dce281e3b17202637161ead8937bb942.tar.bz2
pfsense-packages-a2f538d3dce281e3b17202637161ead8937bb942.zip
Add a package with a patch that fixes packet capture on 1.2.3 nanobsd.
Diffstat (limited to 'config/packetcapturefix/packetcapturefix.patch')
-rw-r--r--config/packetcapturefix/packetcapturefix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/config/packetcapturefix/packetcapturefix.patch b/config/packetcapturefix/packetcapturefix.patch
new file mode 100644
index 00000000..659fdd10
--- /dev/null
+++ b/config/packetcapturefix/packetcapturefix.patch
@@ -0,0 +1,23 @@
+diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php
+index 69fd677..91d61cd 100644
+--- a/usr/local/www/diag_packet_capture.php
++++ b/usr/local/www/diag_packet_capture.php
+@@ -265,6 +265,9 @@ include("head.inc"); ?>
+ <textarea style="width:98%" name="code" rows="15" cols="66" wrap="off" readonly="readonly">
+ <?php
+ system ("/usr/sbin/tcpdump $disabledns $detail -r $fp$fn");?>
++
++ conf_mount_ro();
++
+ </textarea><?php
+ }
+ }?>
+@@ -277,8 +280,6 @@ include("head.inc"); ?>
+ </td></tr></table>
+ <?php
+
+-conf_mount_ro();
+-
+ include("fend.inc");
+
+ ?>