diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-06-28 14:54:43 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-06-28 14:54:43 +0100 |
commit | 5d19b7d42da48ad8fba532642af3cd5eb87798b1 (patch) | |
tree | 73fd2c6aa04110f6c834f99d5de79c9510ccaf26 /util/openssl.lua | |
parent | 5d9768626dd51c4d979c4c0878b707a8b3dbc0fa (diff) | |
parent | 8afacb5d92d6098f6eb85bbc32aff5632983bd5d (diff) | |
download | prosody-5d19b7d42da48ad8fba532642af3cd5eb87798b1.tar.gz prosody-5d19b7d42da48ad8fba532642af3cd5eb87798b1.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/openssl.lua')
-rw-r--r-- | util/openssl.lua | 3 |
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; }); |