aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-10-20 17:36:05 +0200
committerKim Alvefur <zash@zash.se>2022-10-20 17:36:05 +0200
commit640b8d49a302b8c5b2ecbc9a8464b0d409eade5d (patch)
tree5d67730a665bc15d6a82e06dfd39b07d89a94ae3
parent1acd5e0474c00f29fa436eba61c7aceb65ed08dd (diff)
downloadprosody-640b8d49a302b8c5b2ecbc9a8464b0d409eade5d.tar.gz
prosody-640b8d49a302b8c5b2ecbc9a8464b0d409eade5d.zip
util.openssl: Remove Lua 5.1 os.execute() return value compat
-rw-r--r--util/openssl.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/openssl.lua b/util/openssl.lua
index 32b5aea7..3acb4f04 100644
--- a/util/openssl.lua
+++ b/util/openssl.lua
@@ -166,8 +166,7 @@ do -- Lua to shell calls.
setmetatable(_M, {
__index = function(_, command)
return function(opts)
- local ret = os_execute(serialize(command, type(opts) == "table" and opts or {}));
- return ret == true or ret == 0;
+ return os_execute(serialize(command, type(opts) == "table" and opts or {}));
end;
end;
});