Mercurial > prosody-hg
diff util/openssl.lua @ 7462:ced4e800f42a
Merge 0.10->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 28 Jun 2016 14:54:43 +0100 |
| parents | 82710f8c1fe6 |
| children | 88a92ba697bf |
line wrap: on
line diff
--- a/util/openssl.lua Sun Jun 12 20:06:30 2016 +0200 +++ b/util/openssl.lua Tue Jun 28 14:54:43 2016 +0100 @@ -166,7 +166,8 @@ 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; });
