[PATCH 1 of 2] Only do selftest on Windows
Wald Commits
scm-commit at wald.intevation.org
Fri Aug 22 19:56:08 CEST 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1408730108 -7200
# Node ID 574cd1fae1dceb412a39b7b80c2a019893e7e0a4
# Parent 15f7b3ebf21bc5a94df6270030b6f9a6ef424403
Only do selftest on Windows
diff -r 15f7b3ebf21b -r 574cd1fae1dc ui/main.cpp
--- a/ui/main.cpp Fri Aug 22 19:16:31 2014 +0200
+++ b/ui/main.cpp Fri Aug 22 19:55:08 2014 +0200
@@ -54,13 +54,21 @@
int main(int argc, char **argv)
{
- /* First verify integrity even before calling QApplication*/
+#ifdef WIN32
+ /* First verify integrity even before calling QApplication.
+ * We only do this on Windows as we have a PKCS#7 embedded
+ * signature there which we check with OS methods.
+ *
+ * On GNU/Linux platforms you should use an IDS system to
+ * monitor executable corruptions.
+ */
if (!selftest()) {
syslog_error_printf ("Integrity check failed.");
#ifdef RELEASE_BUILD
return -1;
#endif
}
+#endif
QApplication app (argc, argv);
More information about the Trustbridge-commits
mailing list