Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > deca1ef402a003fef729a2d1966bd3b5 > files > 5

wireshark-1.4.6-2.1.mga1.src.rpm

--- wireshark-1.4.6/epan/wslua/template-init.lua~	2011-10-12 14:32:30.768085712 +0200
+++ wireshark-1.4.6/epan/wslua/template-init.lua	2011-10-12 14:32:30.782085628 +0200
@@ -73,5 +73,9 @@
 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")