From 19d4f3084c3e11fbb25f556c528c156cf732c320 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 31 May 2013 02:27:17 +0000 Subject: Replace mvc logevent use of os.execute with subprocess.open --- lua/mvc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/mvc.lua b/lua/mvc.lua index 863b45f..51e6eaa 100755 --- a/lua/mvc.lua +++ b/lua/mvc.lua @@ -7,6 +7,7 @@ module(..., package.seeall) require("posix") +require("subprocess") format = require("acf.format") -- For security, set the path @@ -425,8 +426,7 @@ end _G.cfe = cfe logevent = function ( message ) - os.execute ( "logger \"ACF: " .. string.gsub(message or "", "[`\\\"]", "\\%1") .. "\"" ) - + subprocess.call({"logger", "ACF: " .. (message or "")}) end handle_clientdata = function(form, clientdata) -- cgit v1.2.3