Sophie

Sophie

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

wireshark-1.4.15-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")