From: Kim Alvefur Date: Thu, 23 Jun 2016 19:08:51 +0000 (+0200) Subject: util.openssl: Handle return value from os.execute being true in Lua 5.2 X-Git-Url: https://git.enpas.org/?p=prosody.git;a=commitdiff_plain;h=cacc6991eb55b8bc539e69edf4d1195ce17042b6 util.openssl: Handle return value from os.execute being true in Lua 5.2 --- diff --git a/util/openssl.lua b/util/openssl.lua index 757259f6..33234a7d 100644 --- a/util/openssl.lua +++ b/util/openssl.lua @@ -166,7 +166,8 @@ do -- Lua to shell calls. setmetatable(_M, { __index = function(_, command) return function(opts) - return 0 == os_execute(serialize(command, type(opts) == "table" and opts or {})); + local ret = os_execute(serialize(command, type(opts) == "table" and opts or {})); + return ret == true or ret == 0; end; end; });