# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1466708931 -7200
# Node ID 82710f8c1fe6493773ca2ca220da50f7c6eba9a3
# Parent  5e18416881bbe0532fc2a3185355cb5d5b20abce
util.openssl: Handle return value from os.execute being true in Lua 5.2

diff -r 5e18416881bb -r 82710f8c1fe6 util/openssl.lua
--- a/util/openssl.lua	Thu Jun 23 21:07:48 2016 +0200
+++ b/util/openssl.lua	Thu Jun 23 21:08:51 2016 +0200
@@ -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;
 	});