Mercurial > trustbridge
diff common/selftest.c @ 1073:fa3f4e2370d3
Fix selftest it was broken during the move out of verify_binary
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 10 Sep 2014 17:54:26 +0200 |
parents | f89b41fa7048 |
children | edbf5e5e88f4 |
line wrap: on
line diff
--- a/common/selftest.c Wed Sep 10 17:53:32 2014 +0200 +++ b/common/selftest.c Wed Sep 10 17:54:26 2014 +0200 @@ -27,7 +27,7 @@ return false; } - if (!verify_binary (utf8path, strlen(utf8path)) != VerifyValid) + if (verify_binary (utf8path, strlen(utf8path)) != VerifyValid) { ERRORPRINTF ("Verification of the binary failed"); syslog_error_printf ("Integrity check failed."); @@ -36,6 +36,7 @@ } xfree(utf8path); + return true; #else if (!verify_binary ("/proc/self/exe", 14) != VerifyValid) {