Blame wireshark-1.2.4-enable_lua.patch

Radek Vokál 68e7ca
diff -up wireshark-1.2.4/epan/wslua/template-init.lua.enable_lua wireshark-1.2.4/epan/wslua/template-init.lua
Radek Vokál 68e7ca
--- wireshark-1.2.4/epan/wslua/template-init.lua.enable_lua	2009-11-16 21:30:58.000000000 +0100
Radek Vokál 68e7ca
+++ wireshark-1.2.4/epan/wslua/template-init.lua	2009-12-15 09:33:59.000000000 +0100
Radek Vokál 68e7ca
@@ -26,7 +26,7 @@
Radek Vokál 68e7ca
 -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
Radek Vokál 68e7ca
 
Radek Vokál 68e7ca
 -- Lua is disabled by default, comment out the following line to enable Lua support.
Radek Vokál 68e7ca
-disable_lua = true; do return end;
Radek Vokál 68e7ca
+-- disable_lua = true; do return end;
Radek Vokál 68e7ca
 
Radek Vokál 68e7ca
 
Radek Vokál 68e7ca
 -- If set and we are running with special privileges this setting
Radek Vokál 68e7ca
@@ -39,7 +39,7 @@ if running_superuser then
Radek Vokál 68e7ca
     local disabled_lib = {}
Radek Vokál 68e7ca
     setmetatable(disabled_lib,{ __index = function() error("this package has been disabled") end } );
Radek Vokál 68e7ca
 
Radek Vokál 68e7ca
-    dofile = function() error("dofile has been disabled") end
Radek Vokál 68e7ca
+--    dofile = function() error("dofile has been disabled") end
Radek Vokál 68e7ca
     loadfile = function() error("loadfile has been disabled") end
Radek Vokál 68e7ca
     loadlib = function() error("loadlib has been disabled") end
Radek Vokál 68e7ca
     require = function() error("require has been disabled") end