diff options
author | onefang | 2019-11-13 22:51:20 +1000 |
---|---|---|
committer | onefang | 2019-11-13 22:51:20 +1000 |
commit | 3207720a08803ae6eef61580b499b5fd9637459a (patch) | |
tree | 9799d044a2062164fdbfb5cdf13be90d92e83cce | |
parent | Some more sprucing up of the email and web reports. (diff) | |
download | apt-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-x | apt-panopticon.lua | 4 |
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) | |||
221 | end | 221 | end |
222 | 222 | ||
223 | local execute = function (s) | 223 | local 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) | |||
240 | end | 240 | end |
241 | 241 | ||
242 | local fork = function(s) | 242 | local fork = function(s) |
243 | D(" executing " .. s) | 243 | D(" executing <code>" .. s .. "</code>") |
244 | os.execute(s .. " &") | 244 | os.execute(s .. " &") |
245 | end | 245 | end |
246 | 246 | ||