[PATCH 3 of 4] Fix selftest it was broken during the move out of verify_binary

Wald Commits scm-commit at wald.intevation.org
Wed Sep 10 17:54:56 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1410364466 -7200
# Node ID fa3f4e2370d307d54e7cee4686d29996ceac41fd
# Parent  1e429faf7c8436eb4ed1523252944e57b0f6892f
Fix selftest it was broken during the move out of verify_binary

diff -r 1e429faf7c84 -r fa3f4e2370d3 common/selftest.c
--- 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)
     {


More information about the Trustbridge-commits mailing list