aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-11-13 22:51:20 +1000
committeronefang2019-11-13 22:51:20 +1000
commit3207720a08803ae6eef61580b499b5fd9637459a (patch)
tree9799d044a2062164fdbfb5cdf13be90d92e83cce
parentSome more sprucing up of the email and web reports. (diff)
downloadapt-panopticon-3207720a08803ae6eef61580b499b5fd9637459a.zip
apt-panopticon-3207720a08803ae6eef61580b499b5fd9637459a.tar.gz
apt-panopticon-3207720a08803ae6eef61580b499b5fd9637459a.tar.bz2
apt-panopticon-3207720a08803ae6eef61580b499b5fd9637459a.tar.xz
Protect command listing in log files.
-rwxr-xr-xapt-panopticon.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 23ea2f0..d6bc05a 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -221,7 +221,7 @@ local testing = function(t, host)
221end 221end
222 222
223local execute = function (s) 223local execute = function (s)
224 D(" executing " .. s) 224 D(" executing <pre><code>" .. s .. "</code></pre>")
225 --[[ Damn os.execute() 225 --[[ Damn os.execute()
226 Lua 5.1 says it returns "a status code, which is system-dependent" 226 Lua 5.1 says it returns "a status code, which is system-dependent"
227 Lua 5.2 says it returns true/nil, "exit"/"signal", the status code. 227 Lua 5.2 says it returns true/nil, "exit"/"signal", the status code.
@@ -240,7 +240,7 @@ local execute = function (s)
240end 240end
241 241
242local fork = function(s) 242local fork = function(s)
243 D(" executing " .. s) 243 D(" executing <code>" .. s .. "</code>")
244 os.execute(s .. " &") 244 os.execute(s .. " &")
245end 245end
246 246