Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > f7532fed107f5c045f6d75c91aa370d6 > files > 2

wireshark-1.4.12-1.mga1.src.rpm

Index: wireshark-1.4.10/epan/wslua/template-init.lua
===================================================================
--- wireshark-1.4.10/epan/wslua/template-init.lua
+++ wireshark-1.4.10/epan/wslua/template-init.lua	2011-11-15 01:21:30.161764532 +0100
@@ -73,5 +73,10 @@
 DATA_DIR = datafile_path()
 USER_DIR = persconffile_path()
 
+-- don't unconditionally call disabled dofile function when running as root
+if running_superuser then
+    return
+end
+
 dofile(DATA_DIR.."console.lua")
 --dofile(DATA_DIR.."dtd_gen.lua")