aboutsummaryrefslogtreecommitdiffstats
path: root/util/openssl.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-06-23 21:08:51 +0200
committerKim Alvefur <zash@zash.se>2016-06-23 21:08:51 +0200
commit621ba250ff7f8e5502e1ebebcdbe38d26e5f62f2 (patch)
treeb8282e1f549aec3a4ab5458ecfd2807c03a0aed8 /util/openssl.lua
parentf7c083c86a1c8c7e1f31e7b4e2a02f945125c3cf (diff)
downloadprosody-621ba250ff7f8e5502e1ebebcdbe38d26e5f62f2.tar.gz
prosody-621ba250ff7f8e5502e1ebebcdbe38d26e5f62f2.zip
util.openssl: Handle return value from os.execute being true in Lua 5.2
Diffstat (limited to 'util/openssl.lua')
-rw-r--r--util/openssl.lua3
1 files changed, 2 insertions, 1 deletions
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;
});