Mercurial > prosody-hg
diff util/openssl.lua @ 12784:3b9de8dd71a3
util.openssl: Remove Lua 5.1 os.execute() return value compat
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 20 Oct 2022 17:36:05 +0200 |
| parents | e5d00bf4a4d5 |
| children | d10957394a3c |
line wrap: on
line diff
--- a/util/openssl.lua Thu Oct 20 17:35:01 2022 +0200 +++ b/util/openssl.lua Thu Oct 20 17:36:05 2022 +0200 @@ -166,8 +166,7 @@ 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; });
