/usr/share/ettercap/lua/third-party/package_ext.lua is in ettercap-common 1:0.8.2-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | -- Additions to the package module.
local table_unext = require "table_ext"
-- Save original unextended table.
local unextended = table.clone (package)
--- Make named constants for <code>package.config</code> (undocumented
-- in 5.1; see luaconf.h for C equivalents).
-- @class table
-- @name package
-- @field dirsep directory separator
-- @field pathsep path separator
-- @field path_mark string that marks substitution points in a path template
-- @field execdir (Windows only) replaced by the executable's directory in a path
-- @field igmark Mark to ignore all before it when building <code>luaopen_</code> function name.
package.dirsep, package.pathsep, package.path_mark, package.execdir, package.igmark =
string.match (package.config, "^([^\n]+)\n([^\n]+)\n([^\n]+)\n([^\n]+)\n([^\n]+)")
return unextended
|